Struct debian_control::control::Source
source · pub struct Source(/* private fields */);
Implementations§
source§impl Source
impl Source
pub fn get(&self, key: &str) -> Option<String>
pub fn set_name(&mut self, name: &str)
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: &str)
pub fn set_section(&mut self, section: &str)
Examples found in repository?
examples/create-file.rs (line 6)
3 4 5 6 7 8 9 10 11 12 13 14
pub fn main() {
let mut control = Control::new();
let mut source = control.add_source("hello");
source.set_section("rust");
let mut binary = control.add_binary("hello");
binary.set_architecture("amd64");
binary.set_priority(Priority::Optional);
binary.set_description("Hello, world!");
println!("{}", control.to_string());
}
sourcepub fn priority(&self) -> Option<Priority>
pub fn priority(&self) -> Option<Priority>
The default priority of the packages built from this source package.
pub fn set_priority(&mut self, priority: Priority)
sourcepub fn maintainer(&self) -> Option<String>
pub fn maintainer(&self) -> Option<String>
The maintainer of the package.
pub fn set_maintainer(&mut self, maintainer: &str)
sourcepub fn build_depends(&self) -> Option<Relations>
pub fn build_depends(&self) -> Option<Relations>
The build dependencies of the package.
pub fn set_build_depends(&mut self, relations: &Relations)
pub fn build_depends_indep(&self) -> Option<Relations>
pub fn build_depends_arch(&self) -> Option<Relations>
pub fn build_conflicts(&self) -> Option<Relations>
pub fn build_conflicts_indep(&self) -> Option<Relations>
pub fn build_conflicts_arch(&self) -> Option<Relations>
pub fn standards_version(&self) -> Option<String>
pub fn set_standards_version(&mut self, version: &str)
pub fn homepage(&self) -> Option<Url>
pub fn set_homepage(&mut self, homepage: &Url)
pub fn vcs_git(&self) -> Option<String>
pub fn vcs_browser(&self) -> Option<String>
pub fn uploaders(&self) -> Option<Vec<String>>
pub fn set_uploaders(&mut self, uploaders: &[&str])
pub fn architecture(&self) -> Option<String>
pub fn set_architecture(&mut self, arch: &str)
pub fn rules_requires_root(&self) -> Option<bool>
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§
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