pub struct PatchHeader(/* private fields */);Expand description
A Debian patch header.
Implementations§
Source§impl PatchHeader
impl PatchHeader
Sourcepub fn as_deb822_mut(&mut self) -> &mut Paragraph
pub fn as_deb822_mut(&mut self) -> &mut Paragraph
Get a mutable reference to the underlying Paragraph, mutably.
Sourcepub fn set_origin(&mut self, category: Option<OriginCategory>, origin: Origin)
pub fn set_origin(&mut self, category: Option<OriginCategory>, origin: Origin)
Set the origin of the patch.
Sourcepub fn set_forwarded(&mut self, forwarded: Forwarded)
pub fn set_forwarded(&mut self, forwarded: Forwarded)
Set the Forwarded field.
The author of the patch.
Set the author of the patch.
Sourcepub fn reviewed_by(&self) -> Vec<String>
pub fn reviewed_by(&self) -> Vec<String>
The Reviewed-By field.
Sourcepub fn last_update(&self) -> Option<NaiveDate>
pub fn last_update(&self) -> Option<NaiveDate>
Get the last update date of the patch.
Sourcepub fn set_last_update(&mut self, date: NaiveDate)
pub fn set_last_update(&mut self, date: NaiveDate)
Set the date of the last update
Sourcepub fn applied_upstream(&self) -> Option<AppliedUpstream>
pub fn applied_upstream(&self) -> Option<AppliedUpstream>
The Applied-Upstream field.
Sourcepub fn set_applied_upstream(&mut self, applied_upstream: AppliedUpstream)
pub fn set_applied_upstream(&mut self, applied_upstream: AppliedUpstream)
Set the Applied-Upstream field.
Sourcepub fn bugs(&self) -> impl Iterator<Item = (Option<String>, String)> + '_
pub fn bugs(&self) -> impl Iterator<Item = (Option<String>, String)> + '_
Get the bugs associated with the patch.
Sourcepub fn vendor_bugs<'a>(
&'a self,
vendor: &'a str,
) -> impl Iterator<Item = String> + 'a
pub fn vendor_bugs<'a>( &'a self, vendor: &'a str, ) -> impl Iterator<Item = String> + 'a
Get the bugs associated with a specific vendor.
Sourcepub fn set_upstream_bug(&mut self, bug: &str)
pub fn set_upstream_bug(&mut self, bug: &str)
Set the upstream bug associated with the patch.
Sourcepub fn set_vendor_bug(&mut self, vendor: &str, bug: &str)
pub fn set_vendor_bug(&mut self, vendor: &str, bug: &str)
Set the bug associated with a specific vendor.
Sourcepub fn description(&self) -> Option<String>
pub fn description(&self) -> Option<String>
Get the description of the patch.
Sourcepub fn set_description(&mut self, description: &str)
pub fn set_description(&mut self, description: &str)
Set the description of the patch.
Sourcepub fn long_description(&self) -> Option<String>
pub fn long_description(&self) -> Option<String>
Get the long description of the patch.
Sourcepub fn set_long_description(&mut self, long_description: &str)
pub fn set_long_description(&mut self, long_description: &str)
Set the long description of the patch.
Trait Implementations§
Source§impl Default for PatchHeader
impl Default for PatchHeader
Source§impl Display for PatchHeader
impl Display for PatchHeader
Auto Trait Implementations§
impl Freeze for PatchHeader
impl !RefUnwindSafe for PatchHeader
impl !Send for PatchHeader
impl !Sync for PatchHeader
impl Unpin for PatchHeader
impl !UnwindSafe for PatchHeader
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