pub struct PrefixSegment {
pub slot: PrefixSlot,
pub hash: B3Hash,
pub bytes: u64,
pub text: String,
pub stored: bool,
pub sources: Vec<PrefixSource>,
}Expand description
One frozen segment, as a reader needs it.
bytes is what the record says the segment measured and text is
what the store still holds, so the two disagreeing is itself the
finding: stored false means the object is gone and the text is
empty because nothing could be read, not because the segment was.
Fields§
§slot: PrefixSlot§hash: B3Hash§bytes: u64§text: String§stored: bool§sources: Vec<PrefixSource>Trait Implementations§
Source§impl Clone for PrefixSegment
impl Clone for PrefixSegment
Source§impl Debug for PrefixSegment
impl Debug for PrefixSegment
Source§impl<'de> Deserialize<'de> for PrefixSegment
impl<'de> Deserialize<'de> for PrefixSegment
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 PrefixSegment
Source§impl PartialEq for PrefixSegment
impl PartialEq for PrefixSegment
Source§impl Serialize for PrefixSegment
impl Serialize for PrefixSegment
impl StructuralPartialEq for PrefixSegment
Auto Trait Implementations§
impl Freeze for PrefixSegment
impl RefUnwindSafe for PrefixSegment
impl Send for PrefixSegment
impl Sync for PrefixSegment
impl Unpin for PrefixSegment
impl UnsafeUnpin for PrefixSegment
impl UnwindSafe for PrefixSegment
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