pub struct Fetched {
pub body: Vec<u8>,
pub fetched_at_s: u64,
pub freshness: Freshness,
pub attribution: String,
pub stale_reason: Option<String>,
}Expand description
A body and where it came from.
Fields§
§body: Vec<u8>The response body.
fetched_at_s: u64When it was fetched, in seconds since the Unix epoch.
freshness: FreshnessFetched now, cached and fresh, or cached and stale.
attribution: StringThe source’s attribution, to show with the data.
stale_reason: Option<String>Online, why the fetch failed, or why its answer was refused, when a stale copy was returned in its place.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fetched
impl<'de> Deserialize<'de> for Fetched
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 Fetched
impl StructuralPartialEq for Fetched
Auto Trait Implementations§
impl Freeze for Fetched
impl RefUnwindSafe for Fetched
impl Send for Fetched
impl Sync for Fetched
impl Unpin for Fetched
impl UnsafeUnpin for Fetched
impl UnwindSafe for Fetched
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.