pub enum TicketState {
Open,
InProgress,
Resolved,
Closed,
Unknown,
}Expand description
A ticket’s state as the tracker last reported it. Adapters map their
tracker’s workflow states onto these five, and onto
TicketState::Unknown anything they cannot name — they never invent
a sixth state, and a caller that needs the tracker’s own raw state name
asks the tracker’s API by external_id.
Serialize/Deserialize (snake case, the Severity precedent):
a state arriving on an inbound status webhook crosses the same wire a
Severity does leaving it.
Variants§
Open
Filed, nobody has picked it up.
InProgress
Someone is working on it.
Resolved
The tracker reports it fixed or answered; the caller may want to verify and close it.
Closed
Done, closed, will not be reopened.
Unknown
The tracker reported a state this port cannot name.
Trait Implementations§
Source§impl Clone for TicketState
impl Clone for TicketState
impl Copy for TicketState
Source§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
impl Eq for TicketState
Source§impl Hash for TicketState
impl Hash for TicketState
Source§impl PartialEq for TicketState
impl PartialEq for TicketState
Source§impl Serialize for TicketState
impl Serialize 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.