#[non_exhaustive]pub enum ModelCompleteOutcome {
Completed,
Failed,
Cancelled,
TimedOut,
Unknown(String),
}Expand description
How a model/complete call settled. Open: a server-produced result
vocabulary, so a word a newer host adds decodes to Unknown.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Completed
The model answered; text carries the answer.
Failed
The call failed; message says why.
Cancelled
model/cancel or a connection close won the race.
TimedOut
The host-enforced 45 s bound fired.
Unknown(String)
A value from a newer host, kept verbatim. Excluded from the generated schema; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for ModelCompleteOutcome
impl Clone for ModelCompleteOutcome
Source§impl Debug for ModelCompleteOutcome
impl Debug for ModelCompleteOutcome
Source§impl<'de> Deserialize<'de> for ModelCompleteOutcome
impl<'de> Deserialize<'de> for ModelCompleteOutcome
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
impl Eq for ModelCompleteOutcome
Source§impl PartialEq for ModelCompleteOutcome
impl PartialEq for ModelCompleteOutcome
Source§impl Serialize for ModelCompleteOutcome
impl Serialize for ModelCompleteOutcome
impl StructuralPartialEq for ModelCompleteOutcome
Auto Trait Implementations§
impl Forget for ModelCompleteOutcome
impl Freeze for ModelCompleteOutcome
impl Move for ModelCompleteOutcome
impl RefUnwindSafe for ModelCompleteOutcome
impl Send for ModelCompleteOutcome
impl Sync for ModelCompleteOutcome
impl Unpin for ModelCompleteOutcome
impl UnsafeUnpin for ModelCompleteOutcome
impl UnwindSafe for ModelCompleteOutcome
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