[][src]Struct gitlab::webhooks::NoteHookAttrs

pub struct NoteHookAttrs {
    pub id: NoteId,
    pub note: String,
    pub noteable_type: NoteType,
    pub author_id: UserId,
    pub created_at: HookDate,
    pub updated_at: HookDate,
    pub updated_by_id: Option<UserId>,
    pub resolved_at: Option<HookDate>,
    pub resolved_by_id: Option<UserId>,
    pub project_id: ProjectId,
    pub attachment: Option<String>,
    pub line_code: Option<String>,
    pub commit_id: Option<ObjectId>,
    pub discussion_id: ObjectId,
    pub original_discussion_id: Option<ObjectId>,
    pub system: bool,
    pub st_diff: Option<DiffHookAttrs>,
    pub url: String,
    pub type_: Option<String>,
    // some fields omitted
}

Note (comment) information exposed in hooks.

Fields

id: NoteId

The ID of the note.

note: String

The content of the note.

noteable_type: NoteType

The type of entity the note is attached to.

author_id: UserId

The author of the note.

created_at: HookDate

When the note was created.

updated_at: HookDate

When the note was last updated.

updated_by_id: Option<UserId>

The ID of the user who last updated the note.

resolved_at: Option<HookDate>

When the note was marked as resolved.

resolved_by_id: Option<UserId>

The ID of the user who marked the note as resolved.

project_id: ProjectId

The ID of the project.

attachment: Option<String>

The URL of an attachment to the note.

line_code: Option<String>commit_id: Option<ObjectId>discussion_id: ObjectIdoriginal_discussion_id: Option<ObjectId>system: bool

Whether the note was created by a user or in response to an external action.

st_diff: Option<DiffHookAttrs>url: String

The URL of the note.

type_: Option<String>

Implementations

impl NoteHookAttrs[src]

pub fn noteable_id(&self) -> Option<NoteableId>[src]

The ID of the object the note is for.

Trait Implementations

impl Clone for NoteHookAttrs[src]

impl Debug for NoteHookAttrs[src]

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

impl Serialize for NoteHookAttrs[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.