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§
source§impl<'a> ReleaseFileEntry<'a>
impl<'a> ReleaseFileEntry<'a>
sourcepub fn by_hash_path(&self) -> String
pub fn by_hash_path(&self) -> String
Obtain the by-hash path variant for this entry.
Trait Implementations§
source§impl<'a> Clone for ReleaseFileEntry<'a>
impl<'a> Clone for ReleaseFileEntry<'a>
source§fn clone(&self) -> ReleaseFileEntry<'a>
fn clone(&self) -> ReleaseFileEntry<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for ReleaseFileEntry<'a>
impl<'a> Debug for ReleaseFileEntry<'a>
source§impl<'a> From<AppStreamComponentsEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<AppStreamComponentsEntry<'a>> for ReleaseFileEntry<'a>
source§fn from(v: AppStreamComponentsEntry<'a>) -> Self
fn from(v: AppStreamComponentsEntry<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<AppStreamIconsFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<AppStreamIconsFileEntry<'a>> for ReleaseFileEntry<'a>
source§fn from(v: AppStreamIconsFileEntry<'a>) -> Self
fn from(v: AppStreamIconsFileEntry<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<ContentsFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<ContentsFileEntry<'a>> for ReleaseFileEntry<'a>
source§fn from(v: ContentsFileEntry<'a>) -> Self
fn from(v: ContentsFileEntry<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<FileManifestEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<FileManifestEntry<'a>> for ReleaseFileEntry<'a>
source§fn from(v: FileManifestEntry<'a>) -> Self
fn from(v: FileManifestEntry<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<PackagesFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<PackagesFileEntry<'a>> for ReleaseFileEntry<'a>
source§fn from(v: PackagesFileEntry<'a>) -> Self
fn from(v: PackagesFileEntry<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<ReleaseReleaseFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<ReleaseReleaseFileEntry<'a>> for ReleaseFileEntry<'a>
source§fn from(v: ReleaseReleaseFileEntry<'a>) -> Self
fn from(v: ReleaseReleaseFileEntry<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<SourcesFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<SourcesFileEntry<'a>> for ReleaseFileEntry<'a>
source§fn from(v: SourcesFileEntry<'a>) -> Self
fn from(v: SourcesFileEntry<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<TranslationFileEntry<'a>> for ReleaseFileEntry<'a>
impl<'a> From<TranslationFileEntry<'a>> for ReleaseFileEntry<'a>
source§fn from(v: TranslationFileEntry<'a>) -> Self
fn from(v: TranslationFileEntry<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> PartialEq for ReleaseFileEntry<'a>
impl<'a> PartialEq for ReleaseFileEntry<'a>
source§fn eq(&self, other: &ReleaseFileEntry<'a>) -> bool
fn eq(&self, other: &ReleaseFileEntry<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> PartialOrd for ReleaseFileEntry<'a>
impl<'a> PartialOrd for ReleaseFileEntry<'a>
source§fn partial_cmp(&self, other: &ReleaseFileEntry<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &ReleaseFileEntry<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<'a> TryFrom<ReleaseFileEntry<'a>> for AppStreamComponentsEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for AppStreamComponentsEntry<'a>
§type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
source§impl<'a> TryFrom<ReleaseFileEntry<'a>> for AppStreamIconsFileEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for AppStreamIconsFileEntry<'a>
§type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
source§impl<'a> TryFrom<ReleaseFileEntry<'a>> for ContentsFileEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for ContentsFileEntry<'a>
§type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
source§impl<'a> TryFrom<ReleaseFileEntry<'a>> for FileManifestEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for FileManifestEntry<'a>
§type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
source§impl<'a> TryFrom<ReleaseFileEntry<'a>> for PackagesFileEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for PackagesFileEntry<'a>
§type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
source§impl<'a> TryFrom<ReleaseFileEntry<'a>> for ReleaseReleaseFileEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for ReleaseReleaseFileEntry<'a>
§type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
source§impl<'a> TryFrom<ReleaseFileEntry<'a>> for SourcesFileEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for SourcesFileEntry<'a>
§type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
source§impl<'a> TryFrom<ReleaseFileEntry<'a>> for TranslationFileEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for TranslationFileEntry<'a>
§type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
impl<'a> StructuralPartialEq for ReleaseFileEntry<'a>
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§
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