Struct Issue

Source
pub struct Issue {
    pub self_link: String,
    pub key: String,
    pub id: String,
    pub fields: BTreeMap<String, Value>,
    pub changelog: Option<Changelog>,
}
Expand description

represents a single jira issue

Fields§

§self_link: String§key: String§id: String§fields: BTreeMap<String, Value>§changelog: Option<Changelog>

Implementations§

Source§

impl Issue

Source

pub fn field<F>(&self, name: &str) -> Option<Result<F>>
where for<'de> F: Deserialize<'de>,

resolves a typed field from an issues lists of arbitrary fields

Source

pub fn assignee(&self) -> Option<User>

user assigned to issue

Source

pub fn creator(&self) -> Option<User>

user that created the issue

Source

pub fn reporter(&self) -> Option<User>

user that reported the issue

Source

pub fn status(&self) -> Option<Status>

the current status of the issue

Source

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

brief summary of the issue

Source

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

description of the issue

Source

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

updated timestamp

Source

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

created timestamp

Source

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

Source

pub fn issue_type(&self) -> Option<IssueType>

an issue type

Source

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

labels associated with the issue

Source

pub fn fix_versions(&self) -> Vec<Version>

list of versions associated with the issue

Source

pub fn priority(&self) -> Option<Priority>

priority of the issue

links to other issues

Source

pub fn project(&self) -> Option<Project>

Source

pub fn resolution(&self) -> Option<Resolution>

Source

pub fn attachment(&self) -> Vec<Attachment>

Source

pub fn comment(&self) -> Vec<Comment>

Trait Implementations§

Source§

impl Clone for Issue

Source§

fn clone(&self) -> Issue

Returns a copy 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 Issue

Source§

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

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

impl<'de> Deserialize<'de> for Issue

Source§

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

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl Freeze for Issue

§

impl RefUnwindSafe for Issue

§

impl Send for Issue

§

impl Sync for Issue

§

impl Unpin for Issue

§

impl UnwindSafe for Issue

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<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> 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> 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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,