Struct debian_packaging::repository::release::SourcesFileEntry
source · pub struct SourcesFileEntry<'a> {
pub component: Cow<'a, str>,
pub compression: Compression,
/* private fields */
}Expand description
A type of ReleaseFileEntry that describes a Sources file.
Fields§
§component: Cow<'a, str>The component the sources belong to.
compression: CompressionThe compression format of the sources index.
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 SourcesFileEntry<'a>
impl<'a> Clone for SourcesFileEntry<'a>
source§fn clone(&self) -> SourcesFileEntry<'a>
fn clone(&self) -> SourcesFileEntry<'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 SourcesFileEntry<'a>
impl<'a> Debug for SourcesFileEntry<'a>
source§impl<'a> Deref for SourcesFileEntry<'a>
impl<'a> Deref for SourcesFileEntry<'a>
source§impl<'a> DerefMut for SourcesFileEntry<'a>
impl<'a> DerefMut for SourcesFileEntry<'a>
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> PartialEq for SourcesFileEntry<'a>
impl<'a> PartialEq for SourcesFileEntry<'a>
source§fn eq(&self, other: &SourcesFileEntry<'a>) -> bool
fn eq(&self, other: &SourcesFileEntry<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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.
impl<'a> StructuralPartialEq for SourcesFileEntry<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SourcesFileEntry<'a>
impl<'a> Send for SourcesFileEntry<'a>
impl<'a> Sync for SourcesFileEntry<'a>
impl<'a> Unpin for SourcesFileEntry<'a>
impl<'a> UnwindSafe for SourcesFileEntry<'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