FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TranslationSuggestion

    struct · ferroui-protranslate-studio · v0.5.0

    struct TranslationSuggestion
    

    View source

    Members

    translated_text

    translated_text: String
    

    Source

    provider

    provider: crate::AiProvider
    

    Source

    model_used

    model_used: String
    

    Source

    confidence

    confidence: f64
    

    Source

    tokens_used

    tokens_used: u64
    

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

    Source

    duration_ms

    duration_ms: u64
    

    Source

    entry_id

    fn entry_id(self: &Self) -> EntryId
    

    Source

    key

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

    Source

    reject

    fn reject(self: Self)
    

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

    Source

    is_current

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

    Source

    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.