[−][src]Struct gitlab::types::Note
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.
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
impl Note
[src]
pub fn noteable_id(&self) -> Option<NoteableId>
[src]
The ID of the entity the note is attached to.
pub fn noteable_iid(&self) -> Option<NoteableInternalId>
[src]
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
impl Clone for Note
[src]
impl Debug for Note
[src]
impl<'de> Deserialize<'de> for Note
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Note
[src]
Auto Trait Implementations
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnwindSafe for Note
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,