pub struct CachedAccount {
pub fetched_at: u64,
pub query_hash: String,
pub items: AccountItems,
}Expand description
One integration’s last answer.
Fields§
§fetched_at: u64Unix seconds.
query_hash: Stringsuper::AccountQuery::fingerprint of the question it answers.
items: AccountItemsImplementations§
Source§impl CachedAccount
impl CachedAccount
Sourcepub fn is_fresh(&self, now: u64) -> bool
pub fn is_fresh(&self, now: u64) -> bool
Younger than ACCOUNT_TTL at now (unix seconds).
Trait Implementations§
Source§impl Clone for CachedAccount
impl Clone for CachedAccount
Source§impl Debug for CachedAccount
impl Debug for CachedAccount
Source§impl<'de> Deserialize<'de> for CachedAccount
impl<'de> Deserialize<'de> for CachedAccount
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 CachedAccount
Source§impl PartialEq for CachedAccount
impl PartialEq for CachedAccount
Source§impl Serialize for CachedAccount
impl Serialize for CachedAccount
impl StructuralPartialEq for CachedAccount
Auto Trait Implementations§
impl Forget for CachedAccount
impl Freeze for CachedAccountwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<AccountPr>: Freeze,
PhantomData<AccountIssue>: Freeze,
PhantomData<String>: Freeze,
impl Move for CachedAccount
impl RefUnwindSafe for CachedAccount
impl Send for CachedAccountwhere
RawVecInner: Send,
impl Sync for CachedAccountwhere
RawVecInner: Sync,
impl Unpin for CachedAccount
impl UnsafeUnpin for CachedAccountwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<AccountPr>: UnsafeUnpin,
PhantomData<AccountIssue>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for CachedAccountwhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.