pub struct NoteHookAttrs {
Show 19 fields 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>, /* private fields */
}
Expand description

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: ObjectId§original_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§

The ID of the object the note is for.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.