pub struct Binary(/* private fields */);Expand description
A binary package paragraph
Implementations§
Source§impl Binary
impl Binary
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 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
Sourcepub fn set_section(&mut self, section: Option<&str>)
pub fn set_section(&mut self, section: Option<&str>)
Set the section
Sourcepub fn set_priority(&mut self, priority: Option<Priority>)
pub fn set_priority(&mut self, priority: Option<Priority>)
Set the priority of the package
Sourcepub fn architecture(&self) -> Option<String>
pub fn architecture(&self) -> Option<String>
The architecture of the package.
Sourcepub fn set_architecture(&mut self, arch: Option<&str>)
pub fn set_architecture(&mut self, arch: Option<&str>)
Set the architecture of the package
Sourcepub fn set_depends(&mut self, depends: Option<&Relations>)
pub fn set_depends(&mut self, depends: Option<&Relations>)
Set the Depends field
Sourcepub fn recommends(&self) -> Option<Relations>
pub fn recommends(&self) -> Option<Relations>
The package that this package recommends
Sourcepub fn set_recommends(&mut self, recommends: Option<&Relations>)
pub fn set_recommends(&mut self, recommends: Option<&Relations>)
Set the Recommends field
Sourcepub fn set_suggests(&mut self, suggests: Option<&Relations>)
pub fn set_suggests(&mut self, suggests: Option<&Relations>)
Set the Suggests field
Sourcepub fn set_enhances(&mut self, enhances: Option<&Relations>)
pub fn set_enhances(&mut self, enhances: Option<&Relations>)
Set the Enhances field
Sourcepub fn pre_depends(&self) -> Option<Relations>
pub fn pre_depends(&self) -> Option<Relations>
The package that this package pre-depends on
Sourcepub fn set_pre_depends(&mut self, pre_depends: Option<&Relations>)
pub fn set_pre_depends(&mut self, pre_depends: Option<&Relations>)
Set the Pre-Depends field
Sourcepub fn set_breaks(&mut self, breaks: Option<&Relations>)
pub fn set_breaks(&mut self, breaks: Option<&Relations>)
Set the Breaks field
Sourcepub fn set_conflicts(&mut self, conflicts: Option<&Relations>)
pub fn set_conflicts(&mut self, conflicts: Option<&Relations>)
Set the Conflicts field
Sourcepub fn set_replaces(&mut self, replaces: Option<&Relations>)
pub fn set_replaces(&mut self, replaces: Option<&Relations>)
Set the Replaces field
Sourcepub fn set_provides(&mut self, provides: Option<&Relations>)
pub fn set_provides(&mut self, provides: Option<&Relations>)
Set the Provides field
Sourcepub fn built_using(&self) -> Option<Relations>
pub fn built_using(&self) -> Option<Relations>
Return the Built-Using field
Sourcepub fn set_built_using(&mut self, built_using: Option<&Relations>)
pub fn set_built_using(&mut self, built_using: Option<&Relations>)
Set the Built-Using field
Sourcepub fn multi_arch(&self) -> Option<MultiArch>
pub fn multi_arch(&self) -> Option<MultiArch>
The Multi-Arch field
Sourcepub fn set_multi_arch(&mut self, multi_arch: Option<MultiArch>)
pub fn set_multi_arch(&mut self, multi_arch: Option<MultiArch>)
Set the Multi-Arch field
Sourcepub fn set_essential(&mut self, essential: bool)
pub fn set_essential(&mut self, essential: bool)
Set whether the package is essential
Sourcepub fn description(&self) -> Option<String>
pub fn description(&self) -> Option<String>
Binary package description
Sourcepub fn set_description(&mut self, description: Option<&str>)
pub fn set_description(&mut self, description: Option<&str>)
Set the binary package description
Sourcepub fn set_homepage(&mut self, url: &Url)
pub fn set_homepage(&mut self, url: &Url)
Set the upstream homepage
Sourcepub fn set(&mut self, key: &str, value: &str)
pub fn set(&mut self, key: &str, value: &str)
Set a field in the binary paragraph, using canonical field ordering for binary packages