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 duplicate 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§impl<'a> PartialOrd for ReleaseFileEntry<'a>
impl<'a> PartialOrd for ReleaseFileEntry<'a>
Source§impl<'a> TryFrom<ReleaseFileEntry<'a>> for AppStreamComponentsEntry<'a>
impl<'a> TryFrom<ReleaseFileEntry<'a>> for AppStreamComponentsEntry<'a>
Source§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>
Source§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>
Source§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>
Source§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>
Source§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>
Source§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>
Source§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>
Source§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> Freeze for ReleaseFileEntry<'a>
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