Struct debian_control::control::Binary
source · pub struct Binary(/* private fields */);
Implementations§
source§impl Binary
impl Binary
pub fn set_name(&mut self, name: &str)
pub fn set_section(&mut self, section: &str)
sourcepub fn set_priority(&mut self, priority: Priority)
pub fn set_priority(&mut self, priority: Priority)
Examples found in repository?
examples/create-file.rs (line 10)
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 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)
Examples found in repository?
examples/create-file.rs (line 9)
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());
}
pub fn recommends(&self) -> Option<Relations>
pub fn suggests(&self) -> Option<Relations>
pub fn enhances(&self) -> Option<Relations>
pub fn pre_depends(&self) -> Option<Relations>
pub fn breaks(&self) -> Option<Relations>
pub fn conflicts(&self) -> Option<Relations>
pub fn replaces(&self) -> Option<Relations>
pub fn provides(&self) -> Option<Relations>
pub fn built_using(&self) -> Option<Relations>
pub fn multi_arch(&self) -> Option<MultiArch>
pub fn set_multi_arch(&mut self, multi_arch: Option<MultiArch>)
pub fn essential(&self) -> bool
pub fn set_essential(&mut self, essential: bool)
sourcepub fn description(&self) -> Option<String>
pub fn description(&self) -> Option<String>
Binary package description
sourcepub fn set_description(&mut self, description: &str)
pub fn set_description(&mut self, description: &str)
Examples found in repository?
examples/create-file.rs (line 11)
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());
}
pub fn homepage(&self) -> Option<Url>
pub fn set_homepage(&mut self, url: &Url)
pub fn get(&self, key: &str) -> Option<String>
Auto Trait Implementations§
impl Freeze for Binary
impl !RefUnwindSafe for Binary
impl !Send for Binary
impl !Sync for Binary
impl Unpin for Binary
impl !UnwindSafe for Binary
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