pub enum PrewarmSent {
Refused {
refused: AxError,
},
Answered {
usage: Option<ModelUsage>,
billed_usd_micros: Option<UsdMicros>,
},
}Expand description
The pre-warm’s own answer, on the line of the call that sent it.
Refused is tried first when reading, as in CacheRenewed: every
field of Answered may be absent, so it would read any line.
Variants§
Refused
The failure the pre-warm came back with, unchanged.
Answered
The provider answered the pre-warm.
Trait Implementations§
Source§impl Clone for PrewarmSent
impl Clone for PrewarmSent
Source§impl Debug for PrewarmSent
impl Debug for PrewarmSent
Source§impl<'de> Deserialize<'de> for PrewarmSent
impl<'de> Deserialize<'de> for PrewarmSent
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 PartialEq for PrewarmSent
impl PartialEq for PrewarmSent
Source§impl Serialize for PrewarmSent
impl Serialize for PrewarmSent
impl StructuralPartialEq for PrewarmSent
Auto Trait Implementations§
impl Freeze for PrewarmSent
impl RefUnwindSafe for PrewarmSent
impl Send for PrewarmSent
impl Sync for PrewarmSent
impl Unpin for PrewarmSent
impl UnsafeUnpin for PrewarmSent
impl UnwindSafe for PrewarmSent
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