[][src]Struct gitlab::types::Event

pub struct Event {
    pub title: Option<String>,
    pub project_id: ProjectId,
    pub action_name: String,
    pub target_type: EventTargetType,
    pub author_id: UserId,
    pub data: Option<Value>,
    pub target_title: String,
    pub created_at: DateTime<Utc>,
    pub note: Option<Note>,
    pub author: Option<UserBasic>,
    pub author_username: Option<String>,
    // some fields omitted
}

An event on a project.

Fields

title: Option<String>

The title of the event.

project_id: ProjectId

The ID of the project.

action_name: String

The action which triggered the event.

target_type: EventTargetType

The type of the event target.

author_id: UserId

The ID of the author of the event.

data: Option<Value>target_title: String

The title of the target.

created_at: DateTime<Utc>

When the event was created.

note: Option<Note>author: Option<UserBasic>

The author of the event.

author_username: Option<String>

The handle of the author.

Implementations

impl Event[src]

pub fn target_id(&self) -> Option<EventTargetId>[src]

The ID of an event's target.

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[src]

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

impl Serialize for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

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.