pub struct Changes(/* private fields */);Expand description
Changes file
Implementations§
source§impl Changes
impl Changes
sourcepub fn set_format(&mut self, value: &str)
pub fn set_format(&mut self, value: &str)
Set the format of the Changes file.
sourcepub fn binary(&self) -> Option<Vec<String>>
pub fn binary(&self) -> Option<Vec<String>>
Returns the list of binary packages generated by the source package.
sourcepub fn architecture(&self) -> Option<Vec<String>>
pub fn architecture(&self) -> Option<Vec<String>>
Returns the architecture the source package is intended for.
sourcepub fn distribution(&self) -> Option<String>
pub fn distribution(&self) -> Option<String>
Returns the distribution the source package is intended for.
sourcepub fn maintainer(&self) -> Option<String>
pub fn maintainer(&self) -> Option<String>
Returns the name and email address of the person who maintains the package.
sourcepub fn changed_by(&self) -> Option<String>
pub fn changed_by(&self) -> Option<String>
Returns the name and email address of the person who uploaded the package.
sourcepub fn description(&self) -> Option<String>
pub fn description(&self) -> Option<String>
Returns the description of the source package.
sourcepub fn checksums_sha1(&self) -> Option<Vec<Sha1Checksum>>
pub fn checksums_sha1(&self) -> Option<Vec<Sha1Checksum>>
Returns the SHA-1 checksums of the files in the source package.
sourcepub fn checksums_sha256(&self) -> Option<Vec<Sha256Checksum>>
pub fn checksums_sha256(&self) -> Option<Vec<Sha256Checksum>>
Returns the SHA-256 checksums of the files in the source package.
sourcepub fn get_pool_path(&self) -> Option<String>
pub fn get_pool_path(&self) -> Option<String>
Returns the path to the pool directory for the source package.
sourcepub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, ParseError>
pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, ParseError>
Read a Changes file from a file.
sourcepub fn from_file_relaxed<P: AsRef<Path>>(
path: P,
) -> Result<(Self, Vec<String>), Error>
pub fn from_file_relaxed<P: AsRef<Path>>( path: P, ) -> Result<(Self, Vec<String>), Error>
Read a Changes file from a file, allowing syntax errors.
sourcepub fn read<R: Read>(r: R) -> Result<Self, ParseError>
pub fn read<R: Read>(r: R) -> Result<Self, ParseError>
Read a Changes file from a reader.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Changes
impl !RefUnwindSafe for Changes
impl !Send for Changes
impl !Sync for Changes
impl Unpin for Changes
impl !UnwindSafe for Changes
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