pub struct TrackableItem {
pub common: TrackableItemFields,
pub kind: TrackableItemKind,
}Expand description
A trackable item is either an issue or a merge request.
Fields§
§common: TrackableItemFieldsFields shared by all trackable items.
kind: TrackableItemKindThe type of the trackable item. Contains the fields that are only available for the specific type.
Trait Implementations§
Source§impl Clone for TrackableItem
impl Clone for TrackableItem
Source§fn clone(&self) -> TrackableItem
fn clone(&self) -> TrackableItem
Returns a duplicate of the value. Read more
1.0.0 · 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 TrackableItem
impl Debug for TrackableItem
Source§impl Default for TrackableItem
impl Default for TrackableItem
Source§fn default() -> TrackableItem
fn default() -> TrackableItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrackableItem
To not always check if a trackable item is an issue or a merge request when accessing common
fields, they are contained inside TrackableItemFields.
The type of the trackable item is encoded in TrackableItemKind.
To create the structure, a custom deserializer is needed. It consists of multiple steps
impl<'de> Deserialize<'de> for TrackableItem
To not always check if a trackable item is an issue or a merge request when accessing common
fields, they are contained inside TrackableItemFields.
The type of the trackable item is encoded in TrackableItemKind.
To create the structure, a custom deserializer is needed. It consists of multiple steps
- Create temporary structs that model the structure of the JSON (the ones ending on
Deserialize) - Deserialize them with the default deserializer (derive macro)
- Create the real
TrackableItemthat setsTrackableItem.kindaccordingly.
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for TrackableItem
impl Hash for TrackableItem
Source§impl Ord for TrackableItem
impl Ord for TrackableItem
Source§fn cmp(&self, other: &TrackableItem) -> Ordering
fn cmp(&self, other: &TrackableItem) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TrackableItem
impl PartialEq for TrackableItem
Source§impl PartialOrd for TrackableItem
impl PartialOrd for TrackableItem
impl Eq for TrackableItem
impl StructuralPartialEq for TrackableItem
Auto Trait Implementations§
impl Freeze for TrackableItem
impl RefUnwindSafe for TrackableItem
impl Send for TrackableItem
impl Sync for TrackableItem
impl Unpin for TrackableItem
impl UnwindSafe for TrackableItem
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.