Struct debian_packaging::repository::release::ReleaseFileEntry
source · [−]pub struct ReleaseFileEntry<'a> {
pub path: &'a str,
pub digest: ContentDigest,
pub size: u64,
}Expand description
An entry for a file in a parsed Release file.
Instances correspond to a line in a MD5Sum, SHA1, or SHA256 field.
This is the most generic way to represent an indices file in a Release file.
Instances can be fallibly converted into more strongly typed release entries via TryFrom/TryInto. Other entry types include ContentsFileEntry, PackagesFileEntry, and SourcesFileEntry.
Fields
path: &'a strThe path to this file within the repository.
digest: ContentDigestThe content digest of this file.
size: u64The size of the file in bytes.
Implementations
Obtain the by-hash path variant for this entry.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ReleaseFileEntry<'a>
impl<'a> Send for ReleaseFileEntry<'a>
impl<'a> Sync for ReleaseFileEntry<'a>
impl<'a> Unpin for ReleaseFileEntry<'a>
impl<'a> UnwindSafe for ReleaseFileEntry<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more