TranslationSuggestion
struct · ferroui-protranslate-studio · v0.5.0
struct TranslationSuggestion
Members
translated_textprovidermodel_usedconfidencetokens_usedduration_msentry_idkeyrejectis_current
translated_text
translated_text: String
provider
provider: crate::AiProvider
model_used
model_used: String
confidence
confidence: f64
tokens_used
tokens_used: u64
Request/batch totals, not falsely attributed per-entry usage.
duration_ms
duration_ms: u64
entry_id
fn entry_id(self: &Self) -> EntryId
key
fn key(self: &Self) -> &str
reject
fn reject(self: Self)
Rejection consumes only the suggestion; it never modifies a document.
is_current
fn is_current(self: &Self, document: &StudioDocument) -> bool
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.