Struct debian_packaging::repository::release::ReleaseFileEntry [−][src]
pub struct ReleaseFileEntry<'a> {
pub path: &'a str,
pub digest: ReleaseFileDigest<'a>,
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.
Fields
path: &'a strThe path to this file within the repository.
digest: ReleaseFileDigest<'a>The hex digest of this file.
size: u64The size of the file in bytes.
Implementations
Obtain the by-hash path variant for this entry.
Obtain the content digest as bytes.
Attempt to convert this instance to a ContentsFileEntry.
Resolves to Some if the conversion succeeded or None if this (likely)
isn’t a Contents* file.
Attempt to convert this instance to a PackagesFileEntry.
Resolves to Some if the conversion succeeded or None if this (likely)
isn’t a Packages* file.
Attempt to convert this instance to a SourcesFileEntry.
Resolves to Some if the conversion succeeded or None if this (likely) isn’t a
Sources file.
Trait Implementations
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
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
