pub enum TranslationStatus {
Applied,
Degraded,
Ignored,
Rejected,
}Expand description
Outcome status for a single intent translation.
Plugins return one of these for each intent in the bundle, describing what happened when the plugin tried to express that intent.
Variants§
Applied
Intent was fully expressed in the native API call.
Degraded
Intent was partially expressed (e.g., reduced breakpoints due to model limits).
Ignored
Intent was silently passed through with no action (e.g., not relevant to this backend).
Rejected
Intent was actively rejected (e.g., unsafe for this request, feature disabled).
Trait Implementations§
Source§impl Clone for TranslationStatus
impl Clone for TranslationStatus
Source§fn clone(&self) -> TranslationStatus
fn clone(&self) -> TranslationStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TranslationStatus
impl Debug for TranslationStatus
Source§impl<'de> Deserialize<'de> for TranslationStatus
impl<'de> Deserialize<'de> for TranslationStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TranslationStatus
impl Hash for TranslationStatus
Source§impl PartialEq for TranslationStatus
impl PartialEq for TranslationStatus
Source§fn eq(&self, other: &TranslationStatus) -> bool
fn eq(&self, other: &TranslationStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TranslationStatus
impl Serialize for TranslationStatus
impl Copy for TranslationStatus
impl Eq for TranslationStatus
impl StructuralPartialEq for TranslationStatus
Auto Trait Implementations§
impl Freeze for TranslationStatus
impl RefUnwindSafe for TranslationStatus
impl Send for TranslationStatus
impl Sync for TranslationStatus
impl Unpin for TranslationStatus
impl UnsafeUnpin for TranslationStatus
impl UnwindSafe for TranslationStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more