Struct debian_control::apt::Source

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

A source package in the APT package manager.

Implementations§

source§

impl Source

source

pub fn new(paragraph: Paragraph) -> Self

source

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

source

pub fn set_package(&mut self, package: &str)

source

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

source

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

source

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

source

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

source

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

source

pub fn set_uploaders(&mut self, uploaders: Vec<String>)

source

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

source

pub fn set_standards_version(&mut self, version: &str)

source

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

source

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

source

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

source

pub fn set_vcs_browser(&mut self, url: &str)

source

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

source

pub fn set_vcs_git(&mut self, url: &str)

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source

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

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 architecture(&self) -> Option<String>

The architecture of the package.

source

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

source

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

source

pub fn set_directory(&mut self, dir: &str)

source

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

source

pub fn set_files(&mut self, files: Vec<File>)

source

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

source

pub fn set_checksums_sha1(&mut self, checksums: Vec<Sha1Checksum>)

source

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

source

pub fn set_checksums_sha256(&mut self, checksums: Vec<Sha256Checksum>)

source

pub fn checksums_sha512(&self) -> Vec<Sha512Checksum>

source

pub fn set_checksums_sha512(&mut self, checksums: Vec<Sha512Checksum>)

Trait Implementations§

source§

impl FromStr for Source

§

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 Source

§

impl !RefUnwindSafe for Source

§

impl !Send for Source

§

impl !Sync for Source

§

impl Unpin for Source

§

impl !UnwindSafe for Source

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.