pub struct ProviderUsageCollectionMetadata {
pub freshness: ProviderUsageFreshness,
pub probe_duration_ms: u64,
pub cached_at_ms: Option<i64>,
pub expires_at_ms: Option<i64>,
}Expand description
Optional collection metadata that does not change provider quota semantics.
Fields§
§freshness: ProviderUsageFreshnessWhether this call performed a live probe or returned a cached snapshot.
probe_duration_ms: u64Time spent performing the original provider probe.
cached_at_ms: Option<i64>Time at which a successful result entered the cache, when applicable.
expires_at_ms: Option<i64>Time at which the cached result expires, when applicable.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProviderUsageCollectionMetadata
impl<'de> Deserialize<'de> for ProviderUsageCollectionMetadata
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 ProviderUsageCollectionMetadata
impl StructuralPartialEq for ProviderUsageCollectionMetadata
Auto Trait Implementations§
impl Freeze for ProviderUsageCollectionMetadata
impl RefUnwindSafe for ProviderUsageCollectionMetadata
impl Send for ProviderUsageCollectionMetadata
impl Sync for ProviderUsageCollectionMetadata
impl Unpin for ProviderUsageCollectionMetadata
impl UnsafeUnpin for ProviderUsageCollectionMetadata
impl UnwindSafe for ProviderUsageCollectionMetadata
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.