pub struct EvictionRecord {
pub source: ContextSource,
pub digest: Digest,
pub tokens: u32,
pub reason: EvictionReason,
}Expand description
One item that was considered and refused.
Fields§
§source: ContextSourceWhere it would have come from.
digest: DigestContent address, so the auditor can fetch what was withheld.
tokens: u32What it would have cost.
reason: EvictionReasonWhy it did not make it in.
Trait Implementations§
Source§impl Clone for EvictionRecord
impl Clone for EvictionRecord
Source§impl Debug for EvictionRecord
impl Debug for EvictionRecord
Source§impl<'de> Deserialize<'de> for EvictionRecord
impl<'de> Deserialize<'de> for EvictionRecord
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 EvictionRecord
Source§impl PartialEq for EvictionRecord
impl PartialEq for EvictionRecord
Source§impl Serialize for EvictionRecord
impl Serialize for EvictionRecord
impl StructuralPartialEq for EvictionRecord
Auto Trait Implementations§
impl Freeze for EvictionRecord
impl RefUnwindSafe for EvictionRecord
impl Send for EvictionRecord
impl Sync for EvictionRecord
impl Unpin for EvictionRecord
impl UnsafeUnpin for EvictionRecord
impl UnwindSafe for EvictionRecord
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> Canonical for T
impl<T> Canonical for T
Source§fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
The canonical CBOR encoding of this value.