pub struct ContentsFileEntry<'a> {
pub component: Option<Cow<'a, str>>,
pub architecture: Cow<'a, str>,
pub compression: Compression,
pub is_installer: bool,
/* private fields */
}Expand description
A type of ReleaseFileEntry that describes a Contents file.
This represents a pre-parsed wrapper around a ReleaseFileEntry.
Fields§
§component: Option<Cow<'a, str>>The parsed component name (from the entry’s path).
architecture: Cow<'a, str>The parsed architecture name (from the entry’s path).
compression: CompressionFile-level compression format being used.
is_installer: boolWhether this refers to udeb packages used by installers.
Methods from Deref<Target = 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 ContentsFileEntry<'a>
impl<'a> Clone for ContentsFileEntry<'a>
Source§fn clone(&self) -> ContentsFileEntry<'a>
fn clone(&self) -> ContentsFileEntry<'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 ContentsFileEntry<'a>
impl<'a> Debug for ContentsFileEntry<'a>
Source§impl<'a> Deref for ContentsFileEntry<'a>
impl<'a> Deref for ContentsFileEntry<'a>
Source§impl<'a> DerefMut for ContentsFileEntry<'a>
impl<'a> DerefMut for ContentsFileEntry<'a>
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> PartialEq for ContentsFileEntry<'a>
impl<'a> PartialEq for ContentsFileEntry<'a>
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.
impl<'a> StructuralPartialEq for ContentsFileEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContentsFileEntry<'a>
impl<'a> RefUnwindSafe for ContentsFileEntry<'a>
impl<'a> Send for ContentsFileEntry<'a>
impl<'a> Sync for ContentsFileEntry<'a>
impl<'a> Unpin for ContentsFileEntry<'a>
impl<'a> UnwindSafe for ContentsFileEntry<'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