pub struct Changes(/* private fields */);
Expand description
Changes file
Implementations§
Source§impl Changes
impl Changes
Sourcepub fn parse(text: &str) -> Parse<Changes>
pub fn parse(text: &str) -> Parse<Changes>
Parse changes text, returning a Parse result
Note: This expects a single paragraph, not a full deb822 document
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.