pub struct Source(/* private fields */);
Expand description
A source package in the APT package manager.
Implementations§
Source§impl Source
impl Source
Sourcepub fn parse(text: &str) -> Parse<Source>
pub fn parse(text: &str) -> Parse<Source>
Parse source package text, returning a Parse result
Note: This expects a single paragraph, not a full deb822 document
Sourcepub fn set_package(&mut self, package: &str)
pub fn set_package(&mut self, package: &str)
Set the package name
Sourcepub fn set_version(&mut self, version: Version)
pub fn set_version(&mut self, version: Version)
Set the version of the package
Sourcepub fn maintainer(&self) -> Option<String>
pub fn maintainer(&self) -> Option<String>
Get the maintainer of the package
Sourcepub fn set_maintainer(&mut self, maintainer: &str)
pub fn set_maintainer(&mut self, maintainer: &str)
Set the maintainer of the package
Sourcepub fn set_uploaders(&mut self, uploaders: Vec<String>)
pub fn set_uploaders(&mut self, uploaders: Vec<String>)
Set the uploaders of the package
Sourcepub fn standards_version(&self) -> Option<String>
pub fn standards_version(&self) -> Option<String>
Get the standards version of the package
Sourcepub fn set_standards_version(&mut self, version: &str)
pub fn set_standards_version(&mut self, version: &str)
Set the standards version of the package
Sourcepub fn set_format(&mut self, format: &str)
pub fn set_format(&mut self, format: &str)
Set the format of the package
Sourcepub fn vcs_browser(&self) -> Option<String>
pub fn vcs_browser(&self) -> Option<String>
Get the Vcs-Browser field
Sourcepub fn set_vcs_browser(&mut self, url: &str)
pub fn set_vcs_browser(&mut self, url: &str)
Set the Vcs-Browser field
Sourcepub fn set_vcs_git(&mut self, url: &str)
pub fn set_vcs_git(&mut self, url: &str)
Set the Vcs-Git field
Sourcepub fn set_vcs_svn(&mut self, url: &str)
pub fn set_vcs_svn(&mut self, url: &str)
Set the Vcs-Svn field
Sourcepub fn set_vcs_hg(&mut self, url: &str)
pub fn set_vcs_hg(&mut self, url: &str)
Set the Vcs-Hg field
Sourcepub fn set_vcs_bzr(&mut self, url: &str)
pub fn set_vcs_bzr(&mut self, url: &str)
Set the Vcs-Bzr field
Sourcepub fn set_vcs_arch(&mut self, url: &str)
pub fn set_vcs_arch(&mut self, url: &str)
Set the Vcs-Arch field
Sourcepub fn set_vcs_svk(&mut self, url: &str)
pub fn set_vcs_svk(&mut self, url: &str)
Set the Svk VCS
Sourcepub fn set_vcs_darcs(&mut self, url: &str)
pub fn set_vcs_darcs(&mut self, url: &str)
Set the Darcs VCS
Sourcepub fn set_vcs_mtn(&mut self, url: &str)
pub fn set_vcs_mtn(&mut self, url: &str)
Set the Mtn VCS
Sourcepub fn set_vcs_cvs(&mut self, url: &str)
pub fn set_vcs_cvs(&mut self, url: &str)
Set the Cvs VCS
Sourcepub fn build_depends(&self) -> Option<Relations>
pub fn build_depends(&self) -> Option<Relations>
Get the build depends
Sourcepub fn set_build_depends(&mut self, relations: Relations)
pub fn set_build_depends(&mut self, relations: Relations)
Set the build depends
Sourcepub fn build_depends_indep(&self) -> Option<Relations>
pub fn build_depends_indep(&self) -> Option<Relations>
Get the arch-independent build depends
Sourcepub fn set_build_depends_indep(&mut self, relations: Relations)
pub fn set_build_depends_indep(&mut self, relations: Relations)
Set the arch-independent build depends
Sourcepub fn build_depends_arch(&self) -> Option<Relations>
pub fn build_depends_arch(&self) -> Option<Relations>
Get the arch-dependent build depends
Sourcepub fn set_build_depends_arch(&mut self, relations: Relations)
pub fn set_build_depends_arch(&mut self, relations: Relations)
Set the arch-dependent build depends
Sourcepub fn build_conflicts(&self) -> Option<Relations>
pub fn build_conflicts(&self) -> Option<Relations>
Get the build conflicts
Sourcepub fn set_build_conflicts(&mut self, relations: Relations)
pub fn set_build_conflicts(&mut self, relations: Relations)
Set the build conflicts
Sourcepub fn build_conflicts_indep(&self) -> Option<Relations>
pub fn build_conflicts_indep(&self) -> Option<Relations>
Get the build conflicts indep
Sourcepub fn set_build_conflicts_indep(&mut self, relations: Relations)
pub fn set_build_conflicts_indep(&mut self, relations: Relations)
Set the build conflicts indep
Sourcepub fn build_conflicts_arch(&self) -> Option<Relations>
pub fn build_conflicts_arch(&self) -> Option<Relations>
Get the build conflicts arch
Sourcepub fn set_build_conflicts_arch(&mut self, relations: Relations)
pub fn set_build_conflicts_arch(&mut self, relations: Relations)
Set the build conflicts arch
Sourcepub fn set_binary(&mut self, relations: Relations)
pub fn set_binary(&mut self, relations: Relations)
Set the binary relations
Sourcepub fn set_homepage(&mut self, url: &str)
pub fn set_homepage(&mut self, url: &str)
Set the homepage of the package.
Sourcepub fn set_section(&mut self, section: &str)
pub fn set_section(&mut self, section: &str)
Set the section of the package.
Sourcepub fn set_priority(&mut self, priority: Priority)
pub fn set_priority(&mut self, priority: Priority)
Set the priority of the package.
Sourcepub fn architecture(&self) -> Option<String>
pub fn architecture(&self) -> Option<String>
The architecture of the package.
Sourcepub fn set_architecture(&mut self, arch: &str)
pub fn set_architecture(&mut self, arch: &str)
Set the architecture of the package.
Sourcepub fn set_directory(&mut self, dir: &str)
pub fn set_directory(&mut self, dir: &str)
Set the directory
Sourcepub fn set_testsuite(&mut self, testsuite: &str)
pub fn set_testsuite(&mut self, testsuite: &str)
Set the testsuite
Sourcepub fn files(&self) -> Vec<Md5Checksum>
pub fn files(&self) -> Vec<Md5Checksum>
Get the files
Sourcepub fn set_files(&mut self, files: Vec<Md5Checksum>)
pub fn set_files(&mut self, files: Vec<Md5Checksum>)
Set the files
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