# TextInputMethodCommit

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/text_input/struct-textinputmethodcommit/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct TextInputMethodCommit
```

The accepted input request attached to raw and routed text input. The owner
checks `is_current` immediately before editing, then acknowledges the real
result; an application handling the event does not imply an accepted edit.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/text_input/text_input_method_connection.rs#L351)

## Members

- [`edit`](#function-edit)
- [`completes_composition`](#function-completes_composition)
- [`owner`](#function-owner)
- [`is_current`](#function-is_current)
- [`complete`](#function-complete)

<a id="function-edit"></a>

### edit

```rust
fn edit(self: &Self) -> Option<&TextInputMethodEdit>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/text_input/text_input_method_connection.rs#L369)

<a id="function-completes_composition"></a>

### completes_composition

```rust
fn completes_composition(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/text_input/text_input_method_connection.rs#L375)

<a id="function-owner"></a>

### owner

```rust
fn owner(self: &Self) -> Option<Ref<InputElement>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/text_input/text_input_method_connection.rs#L378)

<a id="function-is_current"></a>

### is_current

```rust
fn is_current(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/text_input/text_input_method_connection.rs#L382)

<a id="function-complete"></a>

### complete

```rust
fn complete(self: &Self, result: Result<bool, TextInputMethodError>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/text_input/text_input_method_connection.rs#L388)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
