pub struct PackagesFileEntry<'a> {
pub component: Cow<'a, str>,
pub architecture: Cow<'a, str>,
pub compression: Compression,
pub is_installer: bool,
/* private fields */
}Expand description
A special type of ReleaseFileEntry that describes a Packages file.
Fields§
§component: 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 PackagesFileEntry<'a>
impl<'a> Clone for PackagesFileEntry<'a>
Source§fn clone(&self) -> PackagesFileEntry<'a>
fn clone(&self) -> PackagesFileEntry<'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 PackagesFileEntry<'a>
impl<'a> Debug for PackagesFileEntry<'a>
Source§impl<'a> Deref for PackagesFileEntry<'a>
impl<'a> Deref for PackagesFileEntry<'a>
Source§impl<'a> DerefMut for PackagesFileEntry<'a>
impl<'a> DerefMut for PackagesFileEntry<'a>
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> PartialEq for PackagesFileEntry<'a>
impl<'a> PartialEq for PackagesFileEntry<'a>
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.
impl<'a> StructuralPartialEq for PackagesFileEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for PackagesFileEntry<'a>
impl<'a> RefUnwindSafe for PackagesFileEntry<'a>
impl<'a> Send for PackagesFileEntry<'a>
impl<'a> Sync for PackagesFileEntry<'a>
impl<'a> Unpin for PackagesFileEntry<'a>
impl<'a> UnwindSafe for PackagesFileEntry<'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