Struct gitlab::types::Note[][src]

pub struct Note {
Show fields pub id: NoteId, pub note_type: Option<DiscussionNoteType>, pub body: String, pub attachment: Option<String>, pub author: UserBasic, pub created_at: DateTime<Utc>, pub updated_at: DateTime<Utc>, pub resolvable: bool, pub resolved: Option<bool>, pub resolved_by: Option<UserBasic>, pub system: bool, pub noteable_type: NoteType, pub position: Option<NotePosition>, // some fields omitted
}
Expand description

A comment on an entity.

Fields

id: NoteId

The ID of the note.

note_type: Option<DiscussionNoteType>

The type of the note.

body: String

The content of the note.

attachment: Option<String>

The URL of an attachment to the note.

author: UserBasic

The author of the note.

created_at: DateTime<Utc>

When the note was created.

updated_at: DateTime<Utc>

When the note was last updated.

resolvable: bool

Whether the note can be resolved.

resolved: Option<bool>

Whether the note has been resolved.

resolved_by: Option<UserBasic>

The user that resolved the note.

system: bool

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

System notes include indications that the commit, issue, etc. was referenced elsewhere, a milestone, assignee, or label change, status chages, and so on.

noteable_type: NoteType

The type of entity the note is attached to.

position: Option<NotePosition>

If applicable, the diff data to which the note is attached

Implementations

The ID of the entity the note is attached to.

The internal ID of the entity the note is attached to (internal to a project). This is available only for notes attached to issues and merge requests.

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.