pub struct Source(/* private fields */);Expand description
A source package paragraph
Implementations§
source§impl Source
impl Source
sourcepub fn wrap_and_sort(
&mut self,
indentation: Indentation,
immediate_empty_line: bool,
max_line_length_one_liner: Option<usize>,
)
pub fn wrap_and_sort( &mut self, indentation: Indentation, immediate_empty_line: bool, max_line_length_one_liner: Option<usize>, )
Wrap and sort the control file paragraph
sourcepub fn as_mut_deb822(&mut self) -> &mut Paragraph
pub fn as_mut_deb822(&mut self) -> &mut Paragraph
Return the underlying deb822 paragraph, mutable
sourcepub fn section(&self) -> Option<String>
pub fn section(&self) -> Option<String>
The default section of the packages built from this source package.
sourcepub fn set_section(&mut self, section: Option<&str>)
pub fn set_section(&mut self, section: Option<&str>)
Set the section of the source package
sourcepub fn priority(&self) -> Option<Priority>
pub fn priority(&self) -> Option<Priority>
The default priority of the packages built from this source package.
sourcepub fn set_priority(&mut self, priority: Option<Priority>)
pub fn set_priority(&mut self, priority: Option<Priority>)
Set the priority of the source package
sourcepub fn maintainer(&self) -> Option<String>
pub fn maintainer(&self) -> Option<String>
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 build_depends(&self) -> Option<Relations>
pub fn build_depends(&self) -> Option<Relations>
The build dependencies of the package.
sourcepub fn set_build_depends(&mut self, relations: &Relations)
pub fn set_build_depends(&mut self, relations: &Relations)
Set the Build-Depends field
sourcepub fn build_depends_indep(&self) -> Option<Relations>
pub fn build_depends_indep(&self) -> Option<Relations>
Return the Build-Depends-Indep field
sourcepub fn build_depends_arch(&self) -> Option<Relations>
pub fn build_depends_arch(&self) -> Option<Relations>
Return the Build-Depends-Arch field
sourcepub fn build_conflicts(&self) -> Option<Relations>
pub fn build_conflicts(&self) -> Option<Relations>
The build conflicts of the package.
sourcepub fn build_conflicts_indep(&self) -> Option<Relations>
pub fn build_conflicts_indep(&self) -> Option<Relations>
Return the Build-Conflicts-Indep field
sourcepub fn build_conflicts_arch(&self) -> Option<Relations>
pub fn build_conflicts_arch(&self) -> Option<Relations>
Return the Build-Conflicts-Arch field
sourcepub fn standards_version(&self) -> Option<String>
pub fn standards_version(&self) -> Option<String>
Return the standards version
sourcepub fn set_standards_version(&mut self, version: &str)
pub fn set_standards_version(&mut self, version: &str)
Set the Standards-Version field
sourcepub fn set_homepage(&mut self, homepage: &Url)
pub fn set_homepage(&mut self, homepage: &Url)
Set the Homepage 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_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 Vcs-Svk field
sourcepub fn set_vcs_darcs(&mut self, url: &str)
pub fn set_vcs_darcs(&mut self, url: &str)
Set the Vcs-Darcs field
sourcepub fn set_vcs_mtn(&mut self, url: &str)
pub fn set_vcs_mtn(&mut self, url: &str)
Set the Vcs-Mtn field
sourcepub fn set_vcs_cvs(&mut self, url: &str)
pub fn set_vcs_cvs(&mut self, url: &str)
Set the Vcs-Cvs 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 vcs_browser(&self) -> Option<String>
pub fn vcs_browser(&self) -> Option<String>
Return the Vcs-Browser field
sourcepub fn set_vcs_browser(&mut self, url: Option<&str>)
pub fn set_vcs_browser(&mut self, url: Option<&str>)
Set the Vcs-Browser field
sourcepub fn set_uploaders(&mut self, uploaders: &[&str])
pub fn set_uploaders(&mut self, uploaders: &[&str])
Set the uploaders field
sourcepub fn architecture(&self) -> Option<String>
pub fn architecture(&self) -> Option<String>
Return the architecture field
sourcepub fn set_architecture(&mut self, arch: Option<&str>)
pub fn set_architecture(&mut self, arch: Option<&str>)
Set the architecture field
sourcepub fn rules_requires_root(&self) -> Option<bool>
pub fn rules_requires_root(&self) -> Option<bool>
Return the Rules-Requires-Root field
sourcepub fn set_rules_requires_root(&mut self, requires_root: bool)
pub fn set_rules_requires_root(&mut self, requires_root: bool)
Set the Rules-Requires-Root field
sourcepub fn set_testsuite(&mut self, testsuite: &str)
pub fn set_testsuite(&mut self, testsuite: &str)
Set the Testsuite field