Struct dep3::PatchHeader

source ·
pub struct PatchHeader(/* private fields */);

Implementations§

source§

impl PatchHeader

source

pub fn new() -> Self

source

pub fn origin(&self) -> Option<(Option<OriginCategory>, Origin)>

source

pub fn set_origin(&mut self, category: Option<OriginCategory>, origin: Origin)

source

pub fn forwarded(&self) -> Option<Forwarded>

source

pub fn set_forwarded(&mut self, forwarded: Forwarded)

source

pub fn author(&self) -> Option<String>

source

pub fn set_author(&mut self, author: &str)

source

pub fn reviewed_by(&self) -> Vec<String>

source

pub fn last_update(&self) -> Option<NaiveDate>

source

pub fn set_last_update(&mut self, date: NaiveDate)

source

pub fn applied_upstream(&self) -> Option<AppliedUpstream>

source

pub fn set_applied_upstream(&mut self, applied_upstream: AppliedUpstream)

source

pub fn bugs(&self) -> impl Iterator<Item = (Option<String>, String)> + '_

source

pub fn vendor_bugs<'a>( &'a self, vendor: &'a str ) -> impl Iterator<Item = String> + '_

source

pub fn set_upstream_bug(&mut self, bug: &str)

source

pub fn set_vendor_bug(&mut self, vendor: &str, bug: &str)

source

pub fn description(&self) -> Option<String>

source

pub fn set_description(&mut self, description: &str)

source

pub fn long_description(&self) -> Option<String>

source

pub fn set_long_description(&mut self, long_description: &str)

source

pub fn write<W: Write>(&self, writer: &mut W) -> Result<()>

Trait Implementations§

source§

impl Default for PatchHeader

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl FromStr for PatchHeader

§

type Err = ParseError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl ToString for PatchHeader

source§

fn to_string(&self) -> String

Converts the given value to a String. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.