pub struct FallbackEvent {
pub timestamp: DateTime<Utc>,
pub from_model: String,
pub to_model: String,
pub reason: String,
pub success: bool,
}Expand description
Single fallback event record.
Fields§
§timestamp: DateTime<Utc>When the fallback occurred.
from_model: StringModel that was skipped/replaced.
to_model: StringModel that was used instead.
reason: StringReason for fallback (e.g. “rate_limit”, “context_overflow”, “error”).
success: boolWhether the fallback succeeded (no further fallback needed).
Trait Implementations§
Source§impl Clone for FallbackEvent
impl Clone for FallbackEvent
Source§fn clone(&self) -> FallbackEvent
fn clone(&self) -> FallbackEvent
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 FallbackEvent
impl Debug for FallbackEvent
Source§impl<'de> Deserialize<'de> for FallbackEvent
impl<'de> Deserialize<'de> for FallbackEvent
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
Auto Trait Implementations§
impl Freeze for FallbackEvent
impl RefUnwindSafe for FallbackEvent
impl Send for FallbackEvent
impl Sync for FallbackEvent
impl Unpin for FallbackEvent
impl UnsafeUnpin for FallbackEvent
impl UnwindSafe for FallbackEvent
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