pub struct PatternInfo {
pub id: String,
pub size: usize,
pub usage_count: u64,
pub bytes_saved: u64,
pub description: String,
}Expand description
Information about a compression pattern
Fields§
§id: StringUnique identifier for this pattern
size: usizeSize of the pattern in bytes
usage_count: u64Number of times this pattern has been used
bytes_saved: u64Compression benefit (bytes saved) from this pattern
description: StringHuman-readable description
Trait Implementations§
Source§impl Clone for PatternInfo
impl Clone for PatternInfo
Source§fn clone(&self) -> PatternInfo
fn clone(&self) -> PatternInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PatternInfo
impl Debug for PatternInfo
Source§impl<'de> Deserialize<'de> for PatternInfo
impl<'de> Deserialize<'de> for PatternInfo
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
Auto Trait Implementations§
impl Freeze for PatternInfo
impl RefUnwindSafe for PatternInfo
impl Send for PatternInfo
impl Sync for PatternInfo
impl Unpin for PatternInfo
impl UnsafeUnpin for PatternInfo
impl UnwindSafe for PatternInfo
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