Struct debian_control::changes::Changes

source ·
pub struct Changes(/* private fields */);

Implementations§

source§

impl Changes

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

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

source

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

source

pub fn from_file_relaxed<P: AsRef<Path>>( path: P, ) -> Result<(Self, Vec<String>), Error>

source

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

source

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

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>,

§

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>,

§

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.