pub struct FetchOutcome {
pub snapshot: OpenAiSnapshot,
pub stale: bool,
pub last_error: Option<(u16, String)>,
pub cache_age: Option<Duration>,
}Fields§
§snapshot: OpenAiSnapshot§stale: bool§last_error: Option<(u16, String)>§cache_age: Option<Duration>Trait Implementations§
Source§impl Clone for FetchOutcome
impl Clone for FetchOutcome
Source§fn clone(&self) -> FetchOutcome
fn clone(&self) -> FetchOutcome
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 FetchOutcome
impl Debug for FetchOutcome
Source§impl From<FetchOutcome> for VendorOutcome
impl From<FetchOutcome> for VendorOutcome
Source§fn from(o: FetchOutcome) -> Self
fn from(o: FetchOutcome) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FetchOutcome
impl RefUnwindSafe for FetchOutcome
impl Send for FetchOutcome
impl Sync for FetchOutcome
impl Unpin for FetchOutcome
impl UnsafeUnpin for FetchOutcome
impl UnwindSafe for FetchOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more