pub enum TicketState {
New,
Assigned,
InProgress,
Blocked,
Review,
Resolved,
Wontfix,
Duplicate,
Invalid,
}Expand description
Specific lifecycle state. Its allowed values depend on TicketStatus.
Variants§
Implementations§
Source§impl TicketState
impl TicketState
pub const OPEN: &'static [TicketState]
pub const CLOSED: &'static [TicketState]
pub const ALL: &'static [TicketState]
pub fn as_str(&self) -> &'static str
pub fn parse(s: &str) -> Result<Self>
pub fn status(self) -> TicketStatus
Trait Implementations§
Source§impl Clone for TicketState
impl Clone for TicketState
Source§fn clone(&self) -> TicketState
fn clone(&self) -> TicketState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TicketState
impl Debug for TicketState
Source§impl<'de> Deserialize<'de> for TicketState
impl<'de> Deserialize<'de> for TicketState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Display for TicketState
impl Display for TicketState
Source§impl Hash for TicketState
impl Hash for TicketState
Source§impl PartialEq for TicketState
impl PartialEq for TicketState
Source§fn eq(&self, other: &TicketState) -> bool
fn eq(&self, other: &TicketState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TicketState
impl Serialize for TicketState
impl Copy for TicketState
impl Eq for TicketState
impl StructuralPartialEq for TicketState
Auto Trait Implementations§
impl Freeze for TicketState
impl RefUnwindSafe for TicketState
impl Send for TicketState
impl Sync for TicketState
impl Unpin for TicketState
impl UnsafeUnpin for TicketState
impl UnwindSafe for TicketState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.