Skip to main content

Bug

Struct Bug 

Source
pub struct Bug {
Show 49 fields pub alias: Alias, pub op_sys: String, pub classification: String, pub id: i32, pub url: String, pub creator: String, pub creator_detail: User, pub summary: String, pub status: String, pub estimated_time: Option<i64>, pub target_milestone: String, pub cc: Vec<String>, pub cc_detail: Vec<User>, pub is_open: bool, pub is_creator_accessible: bool, pub docs_contact: Option<String>, pub docs_contact_detail: Option<User>, pub assigned_to: String, pub assigned_to_detail: User, pub resolution: String, pub severity: String, pub product: String, pub platform: String, pub last_change_time: DateTime<Utc>, pub remaining_time: Option<i64>, pub priority: String, pub whiteboard: String, pub creation_time: DateTime<Utc>, pub is_confirmed: bool, pub qa_contact: String, pub qa_contact_detail: Option<User>, pub dupe_of: Option<i32>, pub target_release: Option<Version>, pub actual_time: Option<i64>, pub component: Component, pub is_cc_accessible: bool, pub version: Version, pub keywords: Vec<String>, pub depends_on: Vec<i32>, pub blocks: Vec<i32>, pub see_also: Option<Vec<String>>, pub groups: Vec<String>, pub deadline: Option<NaiveDate>, pub update_token: Option<String>, pub work_time: Option<i64>, pub flags: Option<Vec<Flag>>, pub tags: Option<Vec<String>>, pub dependent_products: Option<Vec<String>>, pub extra: Value,
}
Expand description

The representation of a single Bugzilla bug with all its fields.

Fields§

§alias: Alias§op_sys: String§classification: String§id: i32§url: String§creator: String§creator_detail: User§summary: String§status: String§estimated_time: Option<i64>§target_milestone: String§cc: Vec<String>§cc_detail: Vec<User>§is_open: bool§is_creator_accessible: bool§docs_contact: Option<String>§docs_contact_detail: Option<User>§assigned_to: String§assigned_to_detail: User§resolution: String§severity: String§product: String§platform: String§last_change_time: DateTime<Utc>§remaining_time: Option<i64>§priority: String§whiteboard: String§creation_time: DateTime<Utc>§is_confirmed: bool§qa_contact: String§qa_contact_detail: Option<User>§dupe_of: Option<i32>§target_release: Option<Version>§actual_time: Option<i64>§component: Component§is_cc_accessible: bool§version: Version§keywords: Vec<String>§depends_on: Vec<i32>§blocks: Vec<i32>§see_also: Option<Vec<String>>§groups: Vec<String>§deadline: Option<NaiveDate>

Bugzilla stores deadline only as YYYY-MM-DD, so it can’t deserialize to full DateTime.

§update_token: Option<String>§work_time: Option<i64>§flags: Option<Vec<Flag>>§tags: Option<Vec<String>>§dependent_products: Option<Vec<String>>§extra: Value

Implementations§

Source§

impl Bug

Source

pub fn get_flag<'a>(&'a self, name: &str) -> Option<&'a str>

Returns a the value of the flag corresponding to the flag name. If no flag by that name is set in the bug, the function returns None.

§Panics

The function panics if flags are not available at all. Enable flags when accessing the Bugzilla instance.

Trait Implementations§

Source§

impl Clone for Bug

Source§

fn clone(&self) -> Bug

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Bug

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Bug

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Bug

Source§

fn eq(&self, other: &Bug) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for Bug

Source§

impl StructuralPartialEq for Bug

Auto Trait Implementations§

§

impl Freeze for Bug

§

impl RefUnwindSafe for Bug

§

impl Send for Bug

§

impl Sync for Bug

§

impl Unpin for Bug

§

impl UnsafeUnpin for Bug

§

impl UnwindSafe for Bug

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,