pub struct FetchResult {
pub document: Value,
pub expires_at: Option<f64>,
}Expand description
Result returned by a DocumentFetcherFn.
Fields§
§document: ValueThe parsed JSON body.
expires_at: Option<f64>Absolute Unix expiry timestamp derived from cache headers, if any.
Trait Implementations§
Source§impl Clone for FetchResult
impl Clone for FetchResult
Auto Trait Implementations§
impl Freeze for FetchResult
impl RefUnwindSafe for FetchResult
impl Send for FetchResult
impl Sync for FetchResult
impl Unpin for FetchResult
impl UnsafeUnpin for FetchResult
impl UnwindSafe for FetchResult
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