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.
Trait Implementations§
Source§impl AstNode for Changes
impl AstNode for Changes
type Language = Lang
fn can_cast(kind: <Self::Language as Language>::Kind) -> bool
fn cast(syntax: SyntaxNode<Self::Language>) -> Option<Self>
fn syntax(&self) -> &SyntaxNode<Self::Language>
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
impl Eq for Changes
impl StructuralPartialEq for Changes
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)