# TranslationSuggestion

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-protranslate-studio/struct-translationsuggestion/

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

```rust
struct TranslationSuggestion
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/suggestions.rs#L67)

## Members

- [`translated_text`](#struct_field-translated_text)
- [`provider`](#struct_field-provider)
- [`model_used`](#struct_field-model_used)
- [`confidence`](#struct_field-confidence)
- [`tokens_used`](#struct_field-tokens_used)
- [`duration_ms`](#struct_field-duration_ms)
- [`entry_id`](#function-entry_id)
- [`key`](#function-key)
- [`reject`](#function-reject)
- [`is_current`](#function-is_current)

<a id="struct_field-translated_text"></a>

### translated_text

```rust
translated_text: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/suggestions.rs#L69)

<a id="struct_field-provider"></a>

### provider

```rust
provider: crate::AiProvider
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/suggestions.rs#L70)

<a id="struct_field-model_used"></a>

### model_used

```rust
model_used: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/suggestions.rs#L71)

<a id="struct_field-confidence"></a>

### confidence

```rust
confidence: f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/suggestions.rs#L72)

<a id="struct_field-tokens_used"></a>

### tokens_used

```rust
tokens_used: u64
```

Request/batch totals, not falsely attributed per-entry usage.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/suggestions.rs#L74)

<a id="struct_field-duration_ms"></a>

### duration_ms

```rust
duration_ms: u64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/suggestions.rs#L75)

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

### entry_id

```rust
fn entry_id(self: &Self) -> EntryId
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/suggestions.rs#L78)

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

### key

```rust
fn key(self: &Self) -> &str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/suggestions.rs#L81)

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

### reject

```rust
fn reject(self: Self)
```

Rejection consumes only the suggestion; it never modifies a document.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/suggestions.rs#L85)

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

### is_current

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Studio/suggestions.rs#L86)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`

## Availability

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