Struct dep3::PatchHeader
source · pub struct PatchHeader(/* private fields */);Implementations§
source§impl PatchHeader
impl PatchHeader
pub fn new() -> Self
pub fn origin(&self) -> Option<(Option<OriginCategory>, Origin)>
pub fn set_origin(&mut self, category: Option<OriginCategory>, origin: Origin)
pub fn forwarded(&self) -> Option<Forwarded>
pub fn set_forwarded(&mut self, forwarded: Forwarded)
pub fn reviewed_by(&self) -> Vec<String>
pub fn last_update(&self) -> Option<NaiveDate>
pub fn set_last_update(&mut self, date: NaiveDate)
pub fn applied_upstream(&self) -> Option<AppliedUpstream>
pub fn set_applied_upstream(&mut self, applied_upstream: AppliedUpstream)
pub fn bugs(&self) -> impl Iterator<Item = (Option<String>, String)> + '_
pub fn vendor_bugs<'a>( &'a self, vendor: &'a str ) -> impl Iterator<Item = String> + '_
pub fn set_upstream_bug(&mut self, bug: &str)
pub fn set_vendor_bug(&mut self, vendor: &str, bug: &str)
pub fn description(&self) -> Option<String>
pub fn set_description(&mut self, description: &str)
pub fn long_description(&self) -> Option<String>
pub fn set_long_description(&mut self, long_description: &str)
pub fn write<W: Write>(&self, writer: &mut W) -> Result<()>
Trait Implementations§
source§impl Default for PatchHeader
impl Default for PatchHeader
source§impl FromStr for PatchHeader
impl FromStr for PatchHeader
Auto Trait Implementations§
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