pub struct ContainerEntry {
pub name: String,
pub role: ContainerRole,
pub storage: EntryStorage,
pub attributes: BTreeMap<String, String>,
}Expand description
One stream or segment in a container summary.
role and attributes are codec-defined. The ordered attribute map keeps
the format-independent summary deterministic.
Fields§
§name: StringEntry name/path within the container.
role: ContainerRoleCodec-defined role classification.
storage: EntryStorageByte storage of this entry.
attributes: BTreeMap<String, String>Extra codec-extracted attributes, sorted by key.
Implementations§
Source§impl ContainerEntry
impl ContainerEntry
Sourcepub fn stored_size(&self) -> Option<u64>
pub fn stored_size(&self) -> Option<u64>
Stored span in bytes, absent when the entry reports none.
Sourcepub fn expanded_size(&self) -> Option<u64>
pub fn expanded_size(&self) -> Option<u64>
Expanded size in bytes, absent when the entry reports none.
Trait Implementations§
Source§impl Clone for ContainerEntry
impl Clone for ContainerEntry
Source§impl Debug for ContainerEntry
impl Debug for ContainerEntry
Source§impl<'de> Deserialize<'de> for ContainerEntry
impl<'de> Deserialize<'de> for ContainerEntry
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 ContainerEntry
Source§impl PartialEq for ContainerEntry
impl PartialEq for ContainerEntry
Source§impl Serialize for ContainerEntry
impl Serialize for ContainerEntry
impl StructuralPartialEq for ContainerEntry
Auto Trait Implementations§
impl Freeze for ContainerEntry
impl RefUnwindSafe for ContainerEntry
impl Send for ContainerEntry
impl Sync for ContainerEntry
impl Unpin for ContainerEntry
impl UnsafeUnpin for ContainerEntry
impl UnwindSafe for ContainerEntry
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