pub struct Header(/* private fields */);Expand description
A header paragraph
Implementations§
Source§impl Header
impl Header
Sourcepub fn format_string(&self) -> Option<String>
pub fn format_string(&self) -> Option<String>
Returns the format string for this file.
Sourcepub fn as_mut_deb822(&mut self) -> &mut Paragraph
👎Deprecated: Use as_deb822 instead
pub fn as_mut_deb822(&mut self) -> &mut Paragraph
Return the underlying Deb822 paragraph, mutably
Sourcepub fn upstream_name(&self) -> Option<String>
pub fn upstream_name(&self) -> Option<String>
Upstream name
Sourcepub fn set_upstream_name(&mut self, name: &str)
pub fn set_upstream_name(&mut self, name: &str)
Set the upstream name
Sourcepub fn upstream_contact(&self) -> Option<String>
pub fn upstream_contact(&self) -> Option<String>
Upstream contact
Sourcepub fn set_upstream_contact(&mut self, contact: &str)
pub fn set_upstream_contact(&mut self, contact: &str)
Set the upstream contact
Sourcepub fn set_source(&mut self, source: &str)
pub fn set_source(&mut self, source: &str)
Set the source
Sourcepub fn files_excluded(&self) -> Option<Vec<String>>
pub fn files_excluded(&self) -> Option<Vec<String>>
List of files excluded from the copyright information, as well as the source package
Sourcepub fn set_files_excluded(&mut self, files: &[&str])
pub fn set_files_excluded(&mut self, files: &[&str])
Set excluded files
Auto Trait Implementations§
impl Freeze for Header
impl !RefUnwindSafe for Header
impl !Send for Header
impl !Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl !UnwindSafe for Header
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