Struct gitlab::webhooks::NoteHookAttrs
source · pub struct NoteHookAttrs {Show 19 fields
pub id: u64,
pub note: String,
pub noteable_type: NoteType,
pub author_id: u64,
pub created_at: HookDate,
pub updated_at: HookDate,
pub updated_by_id: Option<u64>,
pub resolved_at: Option<HookDate>,
pub resolved_by_id: Option<u64>,
pub project_id: u64,
pub attachment: Option<String>,
pub line_code: Option<String>,
pub commit_id: Option<String>,
pub discussion_id: String,
pub original_discussion_id: Option<String>,
pub system: bool,
pub st_diff: Option<DiffHookAttrs>,
pub url: String,
pub type_: Option<String>,
/* private fields */
}
Expand description
Note (comment) information exposed in hooks.
Fields§
§id: u64
The ID of the note.
note: String
The content of the note.
noteable_type: NoteType
The type of entity the note is attached to.
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<u64>
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<u64>
The ID of the user who marked the note as resolved.
project_id: u64
The ID of the project.
attachment: Option<String>
The URL of an attachment to the note.
line_code: Option<String>
§commit_id: Option<String>
§discussion_id: String
§original_discussion_id: Option<String>
§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§
source§impl NoteHookAttrs
impl NoteHookAttrs
sourcepub fn noteable_id(&self) -> Option<NoteableId>
pub fn noteable_id(&self) -> Option<NoteableId>
The ID of the object the note is for.
Trait Implementations§
source§impl Clone for NoteHookAttrs
impl Clone for NoteHookAttrs
source§fn clone(&self) -> NoteHookAttrs
fn clone(&self) -> NoteHookAttrs
Returns a copy 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 NoteHookAttrs
impl Debug for NoteHookAttrs
source§impl<'de> Deserialize<'de> for NoteHookAttrs
impl<'de> Deserialize<'de> for NoteHookAttrs
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
Auto Trait Implementations§
impl Freeze for NoteHookAttrs
impl RefUnwindSafe for NoteHookAttrs
impl Send for NoteHookAttrs
impl Sync for NoteHookAttrs
impl Unpin for NoteHookAttrs
impl UnwindSafe for NoteHookAttrs
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