pub struct Release(/* private fields */);
Expand description
A release in the APT package manager.
Implementations§
Source§impl Release
impl Release
Sourcepub fn parse(text: &str) -> Parse<Release>
pub fn parse(text: &str) -> Parse<Release>
Parse release text, returning a Parse result
Note: This expects a single paragraph, not a full deb822 document
Sourcepub fn set_origin(&mut self, origin: &str)
pub fn set_origin(&mut self, origin: &str)
Set the origin of the release
Sourcepub fn set_codename(&mut self, codename: &str)
pub fn set_codename(&mut self, codename: &str)
Set the codename of the release
Sourcepub fn changelogs(&self) -> Option<Vec<String>>
pub fn changelogs(&self) -> Option<Vec<String>>
Get the URLs at which the changelogs can be found
Sourcepub fn set_changelogs(&mut self, changelogs: Vec<String>)
pub fn set_changelogs(&mut self, changelogs: Vec<String>)
Set the URLs at which the changelogs can be found
Sourcepub fn date(&self) -> Option<DateTime<FixedOffset>>
pub fn date(&self) -> Option<DateTime<FixedOffset>>
Get the date of the release
Sourcepub fn set_date(&mut self, date: DateTime<FixedOffset>)
pub fn set_date(&mut self, date: DateTime<FixedOffset>)
Set the date of the release
Sourcepub fn valid_until(&self) -> Option<DateTime<FixedOffset>>
pub fn valid_until(&self) -> Option<DateTime<FixedOffset>>
Get the date until the release is valid
Sourcepub fn set_valid_until(&mut self, date: DateTime<FixedOffset>)
pub fn set_valid_until(&mut self, date: DateTime<FixedOffset>)
Set the date until the release is valid
Sourcepub fn acquire_by_hash(&self) -> bool
pub fn acquire_by_hash(&self) -> bool
Get whether acquire by hash is enabled
Sourcepub fn set_acquire_by_hash(&mut self, acquire_by_hash: bool)
pub fn set_acquire_by_hash(&mut self, acquire_by_hash: bool)
Set whether acquire by hash is enabled
Sourcepub fn no_support_for_architecture_all(&self) -> bool
pub fn no_support_for_architecture_all(&self) -> bool
Get whether the release has no support for architecture all
Sourcepub fn set_no_support_for_architecture_all(
&mut self,
no_support_for_architecture_all: bool,
)
pub fn set_no_support_for_architecture_all( &mut self, no_support_for_architecture_all: bool, )
Set whether the release has no support for architecture all
Sourcepub fn architectures(&self) -> Option<Vec<String>>
pub fn architectures(&self) -> Option<Vec<String>>
Get the architectures
Sourcepub fn set_architectures(&mut self, architectures: Vec<String>)
pub fn set_architectures(&mut self, architectures: Vec<String>)
Set the architectures
Sourcepub fn components(&self) -> Option<Vec<String>>
pub fn components(&self) -> Option<Vec<String>>
Get the components
Sourcepub fn set_components(&mut self, components: Vec<String>)
pub fn set_components(&mut self, components: Vec<String>)
Set the components
Sourcepub fn description(&self) -> Option<String>
pub fn description(&self) -> Option<String>
Get the description
Sourcepub fn set_description(&mut self, description: &str)
pub fn set_description(&mut self, description: &str)
Set the description
Sourcepub fn checksums_md5(&self) -> Vec<Md5Checksum>
pub fn checksums_md5(&self) -> Vec<Md5Checksum>
Get the MD5 checksums
Sourcepub fn set_checksums_md5(&mut self, files: Vec<Md5Checksum>)
pub fn set_checksums_md5(&mut self, files: Vec<Md5Checksum>)
Set the MD5 checksums
Sourcepub fn checksums_sha1(&self) -> Vec<Sha1Checksum>
pub fn checksums_sha1(&self) -> Vec<Sha1Checksum>
Get the SHA1 checksums
Sourcepub fn set_checksums_sha1(&mut self, checksums: Vec<Sha1Checksum>)
pub fn set_checksums_sha1(&mut self, checksums: Vec<Sha1Checksum>)
Set the SHA1 checksums
Sourcepub fn checksums_sha256(&self) -> Vec<Sha256Checksum>
pub fn checksums_sha256(&self) -> Vec<Sha256Checksum>
Get the SHA256 checksums
Sourcepub fn set_checksums_sha256(&mut self, checksums: Vec<Sha256Checksum>)
pub fn set_checksums_sha256(&mut self, checksums: Vec<Sha256Checksum>)
Set the SHA256 checksums
Sourcepub fn checksums_sha512(&self) -> Vec<Sha512Checksum>
pub fn checksums_sha512(&self) -> Vec<Sha512Checksum>
Get the SHA512 checksums
Sourcepub fn set_checksums_sha512(&mut self, checksums: Vec<Sha512Checksum>)
pub fn set_checksums_sha512(&mut self, checksums: Vec<Sha512Checksum>)
Set the SHA512 checksums