debian_control::lossless::changes

Struct Changes

source
pub struct Changes(/* private fields */);
Expand description

Changes file

Implementations§

source§

impl Changes

source

pub fn format(&self) -> Option<String>

Returns the format of the Changes file.

source

pub fn set_format(&mut self, value: &str)

Set the format of the Changes file.

source

pub fn source(&self) -> Option<String>

Returns the name of the source package.

source

pub fn binary(&self) -> Option<Vec<String>>

Returns the list of binary packages generated by the source package.

source

pub fn architecture(&self) -> Option<Vec<String>>

Returns the architecture the source package is intended for.

source

pub fn version(&self) -> Option<Version>

Returns the version of the source package.

source

pub fn distribution(&self) -> Option<String>

Returns the distribution the source package is intended for.

source

pub fn urgency(&self) -> Option<Urgency>

Returns the urgency of the source package.

source

pub fn maintainer(&self) -> Option<String>

Returns the name and email address of the person who maintains the package.

source

pub fn changed_by(&self) -> Option<String>

Returns the name and email address of the person who uploaded the package.

source

pub fn description(&self) -> Option<String>

Returns the description of the source package.

source

pub fn checksums_sha1(&self) -> Option<Vec<Sha1Checksum>>

Returns the SHA-1 checksums of the files in the source package.

source

pub fn checksums_sha256(&self) -> Option<Vec<Sha256Checksum>>

Returns the SHA-256 checksums of the files in the source package.

source

pub fn files(&self) -> Option<Vec<File>>

Returns the list of files in the source package.

source

pub fn get_pool_path(&self) -> Option<String>

Returns the path to the pool directory for the source package.

source

pub fn new() -> Self

Create a new Changes file.

source

pub fn from_file<P: AsRef<Path>>(path: P) -> Result<Self, ParseError>

Read a Changes file from a file.

source

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.

source

pub fn read<R: Read>(r: R) -> Result<Self, ParseError>

Read a Changes file from a reader.

source

pub fn read_relaxed<R: Read>(r: R) -> Result<(Self, Vec<String>), Error>

Read a Changes file from a reader, allowing syntax errors.

Trait Implementations§

source§

impl Default for Changes

source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.