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 set(&mut self, key: &str, value: &str)
pub fn set(&mut self, key: &str, value: &str)
Set a field in the source paragraph, using canonical field ordering for source packages
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
Sourcepub fn overlaps_range(&self, range: TextRange) -> bool
pub fn overlaps_range(&self, range: TextRange) -> bool
Trait Implementations§
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl !RefUnwindSafe for Source
impl !Send for Source
impl !Sync for Source
impl Unpin for Source
impl !UnwindSafe for Source
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)