pub struct MDBFileInfo {
pub metadata: FileDataSequenceHeader,
pub segments: Vec<FileDataSequenceEntry>,
pub verification: Vec<FileVerificationEntry>,
pub metadata_ext: Option<FileMetadataExt>,
}Fields§
§metadata: FileDataSequenceHeader§segments: Vec<FileDataSequenceEntry>§verification: Vec<FileVerificationEntry>§metadata_ext: Option<FileMetadataExt>Implementations§
Source§impl MDBFileInfo
impl MDBFileInfo
pub fn num_bytes(&self) -> u64
pub fn serialize<W: Write>(&self, writer: &mut W) -> Result<usize, Error>
pub fn deserialize<R: Read>(reader: &mut R) -> Result<Option<Self>, Error>
pub fn contains_verification(&self) -> bool
pub fn contains_metadata_ext(&self) -> bool
Sourcepub fn merge_from(&mut self, other: &Self) -> Result<()>
pub fn merge_from(&mut self, other: &Self) -> Result<()>
Merges the content of other into the content of self if needed. After this call, self will have the verification info and metadata extension if they exist in the other object but not this one.
Trait Implementations§
Source§impl Clone for MDBFileInfo
impl Clone for MDBFileInfo
Source§fn clone(&self) -> MDBFileInfo
fn clone(&self) -> MDBFileInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MDBFileInfo
impl Debug for MDBFileInfo
Source§impl Default for MDBFileInfo
impl Default for MDBFileInfo
Source§fn default() -> MDBFileInfo
fn default() -> MDBFileInfo
Returns the “default value” for a type. Read more
Source§impl From<&MDBFileInfoView> for MDBFileInfo
impl From<&MDBFileInfoView> for MDBFileInfo
Source§fn from(view: &MDBFileInfoView) -> Self
fn from(view: &MDBFileInfoView) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MDBFileInfo
impl PartialEq for MDBFileInfo
Source§fn eq(&self, other: &MDBFileInfo) -> bool
fn eq(&self, other: &MDBFileInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MDBFileInfo
impl Serialize for MDBFileInfo
impl StructuralPartialEq for MDBFileInfo
Auto Trait Implementations§
impl Freeze for MDBFileInfo
impl RefUnwindSafe for MDBFileInfo
impl Send for MDBFileInfo
impl Sync for MDBFileInfo
impl Unpin for MDBFileInfo
impl UnsafeUnpin for MDBFileInfo
impl UnwindSafe for MDBFileInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more