pub struct PatchHeader {
pub origin: Option<(Option<OriginCategory>, Origin)>,
pub forwarded: Option<Forwarded>,
pub author: Option<String>,
pub reviewed_by: Option<String>,
pub bug_debian: Option<Url>,
pub last_update: Option<NaiveDate>,
pub applied_upstream: Option<AppliedUpstream>,
pub bug: Option<Url>,
pub description: Option<String>,
}Expand description
A patch header.
Fields§
§origin: Option<(Option<OriginCategory>, Origin)>The origin of the patch.
forwarded: Option<Forwarded>Whether the patch has been forwarded upstream.
The author of the patch.
reviewed_by: Option<String>The person who reviewed the patch.
bug_debian: Option<Url>The URL of the Debian bug report.
last_update: Option<NaiveDate>The date of the last update.
applied_upstream: Option<AppliedUpstream>Whether the patch has been applied upstream.
bug: Option<Url>The URL of the upstream bug report.
description: Option<String>The description of the patch.
Implementations§
Source§impl PatchHeader
impl PatchHeader
Sourcepub fn vendor_bugs(&self, vendor: &str) -> Option<&str>
pub fn vendor_bugs(&self, vendor: &str) -> Option<&str>
Create a new patch header.
Trait Implementations§
Source§impl Clone for PatchHeader
impl Clone for PatchHeader
Source§fn clone(&self) -> PatchHeader
fn clone(&self) -> PatchHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PatchHeader
impl Debug for PatchHeader
Source§impl Display for PatchHeader
impl Display for PatchHeader
Source§impl<P: Deb822LikeParagraph> FromDeb822Paragraph<P> for PatchHeader
impl<P: Deb822LikeParagraph> FromDeb822Paragraph<P> for PatchHeader
Source§impl FromStr for PatchHeader
impl FromStr for PatchHeader
Source§impl PartialEq for PatchHeader
impl PartialEq for PatchHeader
Source§impl<P: Deb822LikeParagraph> ToDeb822Paragraph<P> for PatchHeader
impl<P: Deb822LikeParagraph> ToDeb822Paragraph<P> for PatchHeader
Source§fn to_paragraph(&self) -> P
fn to_paragraph(&self) -> P
Convert this object to a paragraph.
Source§fn update_paragraph(&self, para: &mut P)
fn update_paragraph(&self, para: &mut P)
Update the given paragraph with the values from this object.
impl StructuralPartialEq 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