pub struct ResultCacheBudgetV1 {
pub format_version: u16,
pub collection_id: CollectionId,
pub maximum_entry_bytes: u64,
pub maximum_collection_bytes: u64,
pub maximum_collection_entries: u32,
}Expand description
Per-collection cache admission and eviction budget.
Fields§
§format_version: u16§collection_id: CollectionId§maximum_entry_bytes: u64§maximum_collection_bytes: u64§maximum_collection_entries: u32Implementations§
Source§impl ResultCacheBudgetV1
impl ResultCacheBudgetV1
pub fn validate(self) -> Result<(), DerivedContractError>
Trait Implementations§
Source§impl Clone for ResultCacheBudgetV1
impl Clone for ResultCacheBudgetV1
impl Copy for ResultCacheBudgetV1
Source§impl Debug for ResultCacheBudgetV1
impl Debug for ResultCacheBudgetV1
Source§impl<'de> Deserialize<'de> for ResultCacheBudgetV1
impl<'de> Deserialize<'de> for ResultCacheBudgetV1
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 ResultCacheBudgetV1
Source§impl PartialEq for ResultCacheBudgetV1
impl PartialEq for ResultCacheBudgetV1
Source§impl Serialize for ResultCacheBudgetV1
impl Serialize for ResultCacheBudgetV1
impl StructuralPartialEq for ResultCacheBudgetV1
Auto Trait Implementations§
impl Freeze for ResultCacheBudgetV1
impl RefUnwindSafe for ResultCacheBudgetV1
impl Send for ResultCacheBudgetV1
impl Sync for ResultCacheBudgetV1
impl Unpin for ResultCacheBudgetV1
impl UnsafeUnpin for ResultCacheBudgetV1
impl UnwindSafe for ResultCacheBudgetV1
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