Struct debian_control::lossless::apt::Release

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

Implementations§

source§

impl Release

source

pub fn new(paragraph: Paragraph) -> Self

source

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

source

pub fn set_origin(&mut self, origin: &str)

source

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

source

pub fn set_label(&mut self, label: &str)

source

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

source

pub fn set_suite(&mut self, suite: &str)

source

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

source

pub fn set_codename(&mut self, codename: &str)

source

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

source

pub fn set_changelogs(&mut self, changelogs: Vec<String>)

source

pub fn date(&self) -> Option<DateTime<FixedOffset>>

source

pub fn set_date(&mut self, date: DateTime<FixedOffset>)

source

pub fn valid_until(&self) -> Option<DateTime<FixedOffset>>

source

pub fn set_valid_until(&mut self, date: DateTime<FixedOffset>)

source

pub fn acquire_by_hash(&self) -> bool

source

pub fn set_acquire_by_hash(&mut self, acquire_by_hash: bool)

source

pub fn no_support_for_architecture_all(&self) -> bool

source

pub fn set_no_support_for_architecture_all( &mut self, no_support_for_architecture_all: bool, )

source

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

source

pub fn set_architectures(&mut self, architectures: Vec<String>)

source

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

source

pub fn set_components(&mut self, components: Vec<String>)

source

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

source

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

source

pub fn checksums_md5(&self) -> Vec<MD5Checksum>

source

pub fn set_checksums_md5(&mut self, files: Vec<MD5Checksum>)

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 Release

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 Release

§

impl !RefUnwindSafe for Release

§

impl !Send for Release

§

impl !Sync for Release

§

impl Unpin for Release

§

impl !UnwindSafe for Release

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.