Struct debian_control::apt::Package

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

Implementations§

source§

impl Package

source

pub fn new(paragraph: Paragraph) -> Self

source

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

source

pub fn set_name(&mut self, name: &str)

source

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

source

pub fn set_version(&mut self, version: Version)

source

pub fn installed_size(&self) -> Option<usize>

source

pub fn set_installed_size(&mut self, size: usize)

source

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

source

pub fn set_maintainer(&mut self, maintainer: &str)

source

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

source

pub fn set_architecture(&mut self, arch: &str)

source

pub fn depends(&self) -> Option<Relations>

source

pub fn set_depends(&mut self, relations: Relations)

source

pub fn recommends(&self) -> Option<Relations>

source

pub fn set_recommends(&mut self, relations: Relations)

source

pub fn suggests(&self) -> Option<Relations>

source

pub fn set_suggests(&mut self, relations: Relations)

source

pub fn enhances(&self) -> Option<Relations>

source

pub fn set_enhances(&mut self, relations: Relations)

source

pub fn pre_depends(&self) -> Option<Relations>

source

pub fn set_pre_depends(&mut self, relations: Relations)

source

pub fn breaks(&self) -> Option<Relations>

source

pub fn set_breaks(&mut self, relations: Relations)

source

pub fn conflicts(&self) -> Option<Relations>

source

pub fn set_conflicts(&mut self, relations: Relations)

source

pub fn replaces(&self) -> Option<Relations>

source

pub fn set_replaces(&mut self, relations: Relations)

source

pub fn provides(&self) -> Option<Relations>

source

pub fn set_provides(&mut self, relations: Relations)

source

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

source

pub fn set_section(&mut self, section: &str)

source

pub fn priority(&self) -> Option<Priority>

source

pub fn set_priority(&mut self, priority: Priority)

source

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

source

pub fn set_description(&mut self, description: &str)

source

pub fn homepage(&self) -> Option<Url>

source

pub fn set_homepage(&mut self, url: &Url)

source

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

source

pub fn set_source(&mut self, source: &str)

source

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

source

pub fn set_description_md5(&mut self, md5: &str)

source

pub fn tags(&self, tag: &str) -> Option<Vec<String>>

source

pub fn set_tags(&mut self, tag: &str, tags: Vec<String>)

source

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

source

pub fn set_filename(&mut self, filename: &str)

source

pub fn size(&self) -> Option<usize>

source

pub fn set_size(&mut self, size: usize)

source

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

source

pub fn set_md5sum(&mut self, md5sum: &str)

source

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

source

pub fn set_sha256(&mut self, sha256: &str)

source

pub fn multi_arch(&self) -> Option<MultiArch>

source

pub fn set_multi_arch(&mut self, arch: MultiArch)

Trait Implementations§

source§

impl FromStr for Package

§

type Err = ParseError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more

Auto Trait Implementations§

§

impl Freeze for Package

§

impl !RefUnwindSafe for Package

§

impl !Send for Package

§

impl !Sync for Package

§

impl Unpin for Package

§

impl !UnwindSafe for Package

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.