pub struct Buildinfo(/* private fields */);Expand description
A buildinfo file
Implementations§
Source§impl Buildinfo
impl Buildinfo
Sourcepub fn parse(text: &str) -> Parse<Buildinfo>
pub fn parse(text: &str) -> Parse<Buildinfo>
Parse buildinfo text, returning a Parse result
Note: This expects a single paragraph, not a full deb822 document
Sourcepub fn set_source(&mut self, package: &str)
pub fn set_source(&mut self, package: &str)
Set the package name
Sourcepub fn set_binaries(&mut self, binaries: Vec<String>)
pub fn set_binaries(&mut self, binaries: Vec<String>)
Set the binary package names
Sourcepub fn set_version(&mut self, version: Version)
pub fn set_version(&mut self, version: Version)
Set the version of the package
Sourcepub fn build_architecture(&self) -> Option<String>
pub fn build_architecture(&self) -> Option<String>
Get the build architecture
Sourcepub fn set_build_architecture(&mut self, arch: &str)
pub fn set_build_architecture(&mut self, arch: &str)
Set the build architecture
Sourcepub fn architecture(&self) -> Option<String>
pub fn architecture(&self) -> Option<String>
Get the architecture
Sourcepub fn set_architecture(&mut self, arch: &str)
pub fn set_architecture(&mut self, arch: &str)
Set the architecture
Sourcepub fn checksums_sha256(&self) -> Vec<Sha256Checksum>
pub fn checksums_sha256(&self) -> Vec<Sha256Checksum>
Get Sha256 checksums
Sourcepub fn set_checksums_sha256(&mut self, checksums: Vec<Sha256Checksum>)
pub fn set_checksums_sha256(&mut self, checksums: Vec<Sha256Checksum>)
Set Sha256 checksums
Sourcepub fn checksums_sha1(&self) -> Vec<Sha1Checksum>
pub fn checksums_sha1(&self) -> Vec<Sha1Checksum>
Get SHA1 checksums
Sourcepub fn set_checksums_sha1(&mut self, checksums: Vec<Sha1Checksum>)
pub fn set_checksums_sha1(&mut self, checksums: Vec<Sha1Checksum>)
Set SHA1 checksums
Sourcepub fn checksums_md5(&self) -> Vec<Md5Checksum>
pub fn checksums_md5(&self) -> Vec<Md5Checksum>
Get MD5 checksums
Sourcepub fn set_checksums_md5(&mut self, checksums: Vec<Md5Checksum>)
pub fn set_checksums_md5(&mut self, checksums: Vec<Md5Checksum>)
Set MD5 checksums
Sourcepub fn build_origin(&self) -> Option<String>
pub fn build_origin(&self) -> Option<String>
Get the build origin
Sourcepub fn set_build_origin(&mut self, origin: &str)
pub fn set_build_origin(&mut self, origin: &str)
Set the build origin
Sourcepub fn build_date(&self) -> Option<String>
pub fn build_date(&self) -> Option<String>
Date on which the package was built
Sourcepub fn set_build_date(&mut self, date: &str)
pub fn set_build_date(&mut self, date: &str)
Set the build date
Sourcepub fn build_tainted_by(&self) -> Option<Vec<String>>
pub fn build_tainted_by(&self) -> Option<Vec<String>>
Get the build tainted by field list
Sourcepub fn set_build_tainted_by(&mut self, tainted_by: Vec<String>)
pub fn set_build_tainted_by(&mut self, tainted_by: Vec<String>)
Set the build tainted by field list
Sourcepub fn set_format(&mut self, format: &str)
pub fn set_format(&mut self, format: &str)
Set the format of the package
Sourcepub fn build_path(&self) -> Option<String>
pub fn build_path(&self) -> Option<String>
Get the build path
Sourcepub fn set_build_path(&mut self, path: &str)
pub fn set_build_path(&mut self, path: &str)
Set the build path
Sourcepub fn set_environment(&mut self, env: HashMap<String, String>)
pub fn set_environment(&mut self, env: HashMap<String, String>)
Set the build environment
Sourcepub fn installed_build_depends(&self) -> Option<Relations>
pub fn installed_build_depends(&self) -> Option<Relations>
Get the list of installed build depends
Sourcepub fn set_installed_build_depends(&mut self, depends: Relations)
pub fn set_installed_build_depends(&mut self, depends: Relations)
Set the list of installed build depends
Trait Implementations§
Source§impl AstNode for Buildinfo
impl AstNode for Buildinfo
type Language = Lang
fn can_cast(kind: <Self::Language as Language>::Kind) -> bool
fn cast(syntax: SyntaxNode<Self::Language>) -> Option<Self>
fn syntax(&self) -> &SyntaxNode<Self::Language>
fn clone_for_update(&self) -> Selfwhere
Self: Sized,
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for Buildinfo
impl !RefUnwindSafe for Buildinfo
impl !Send for Buildinfo
impl !Sync for Buildinfo
impl Unpin for Buildinfo
impl !UnwindSafe for Buildinfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more