pub struct DebcargoSource<'a> { /* private fields */ }Expand description
The source package in a debcargo.toml file.
Implementations§
Source§impl<'a> DebcargoSource<'a>
impl<'a> DebcargoSource<'a>
Sourcepub fn toml_section_mut(&mut self) -> &mut Table
pub fn toml_section_mut(&mut self) -> &mut Table
Return the source section of the debcargo.toml file.
Sourcepub fn set_standards_version(&mut self, version: &str) -> &mut Self
pub fn set_standards_version(&mut self, version: &str) -> &mut Self
Set the standards version.
Sourcepub fn standards_version(&self) -> &str
pub fn standards_version(&self) -> &str
Return the standards version.
Sourcepub fn set_homepage(&mut self, homepage: &str) -> &mut Self
pub fn set_homepage(&mut self, homepage: &str) -> &mut Self
Set the homepage.
Sourcepub fn set_vcs_git(&mut self, git: &str) -> &mut Self
pub fn set_vcs_git(&mut self, git: &str) -> &mut Self
Set the VCS Git URL.
Sourcepub fn vcs_browser(&self) -> Option<String>
pub fn vcs_browser(&self) -> Option<String>
Get the VCS browser URL.
Sourcepub fn set_vcs_browser(&mut self, browser: &str) -> &mut Self
pub fn set_vcs_browser(&mut self, browser: &str) -> &mut Self
Set the VCS browser URL.
Sourcepub fn set_section(&mut self, section: &str) -> &mut Self
pub fn set_section(&mut self, section: &str) -> &mut Self
Set the section.
Sourcepub fn set_priority(&mut self, priority: Priority) -> &mut Self
pub fn set_priority(&mut self, priority: Priority) -> &mut Self
Set the priority.
Sourcepub fn rules_requires_root(&self) -> bool
pub fn rules_requires_root(&self) -> bool
Get whether the package build requires root.
Sourcepub fn set_rules_requires_root(&mut self, requires_root: bool) -> &mut Self
pub fn set_rules_requires_root(&mut self, requires_root: bool) -> &mut Self
Set whether the package build requires root.
Sourcepub fn maintainer(&self) -> &str
pub fn maintainer(&self) -> &str
Get the maintainer.
Sourcepub fn set_maintainer(&mut self, maintainer: &str) -> &mut Self
pub fn set_maintainer(&mut self, maintainer: &str) -> &mut Self
Set the maintainer.
Sourcepub fn set_uploaders(&mut self, uploaders: Vec<String>) -> &mut Self
pub fn set_uploaders(&mut self, uploaders: Vec<String>) -> &mut Self
Set the uploaders.
Trait Implementations§
Source§impl<'a> AbstractSource<'a> for DebcargoSource<'a>
impl<'a> AbstractSource<'a> for DebcargoSource<'a>
Source§fn ensure_build_dep(&mut self, dep: Entry)
fn ensure_build_dep(&mut self, dep: Entry)
Ensure that a build dependency is present.
Source§fn set_maintainer(&mut self, maintainer: &str)
fn set_maintainer(&mut self, maintainer: &str)
Set the maintainer of the source package.
Source§fn set_uploaders(&mut self, uploaders: &[&str])
fn set_uploaders(&mut self, uploaders: &[&str])
Set the uploaders of the source package.
Auto Trait Implementations§
impl<'a> Freeze for DebcargoSource<'a>
impl<'a> RefUnwindSafe for DebcargoSource<'a>
impl<'a> Send for DebcargoSource<'a>
impl<'a> Sync for DebcargoSource<'a>
impl<'a> Unpin for DebcargoSource<'a>
impl<'a> !UnwindSafe for DebcargoSource<'a>
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