[][src]Struct gitlab::types::ResourceLabelEvent

pub struct ResourceLabelEvent {
    pub id: LabelEventId,
    pub user: UserBasic,
    pub created_at: DateTime<Utc>,
    pub label: Option<EventLabel>,
    pub action: String,
    // some fields omitted
}

A resource label event

Note that resource events were added in Gitlab 11.2. Any labels added or removed before then will not be returned by the API.

Fields

id: LabelEventId

The ID for the label event

user: UserBasiccreated_at: DateTime<Utc>label: Option<EventLabel>

The label may be None if the label has been deleted.

action: String

Implementations

impl ResourceLabelEvent[src]

pub fn event_target(&self) -> Option<ResourceLabelEventTarget>[src]

Returns the id of the merge request or issue that this event is from

Trait Implementations

impl Clone for ResourceLabelEvent[src]

impl Debug for ResourceLabelEvent[src]

impl<'de> Deserialize<'de> for ResourceLabelEvent[src]

impl Serialize for ResourceLabelEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.