Enum gitlab::types::NoteableId
source · pub enum NoteableId {
Commit(ObjectId),
Issue(IssueId),
MergeRequest(MergeRequestId),
Snippet(SnippetId),
}
Expand description
The ID of an entity a note is attached to.
Variants§
Commit(ObjectId)
The ID of the commit for a commit note.
Issue(IssueId)
The ID of the issue for an issue note.
MergeRequest(MergeRequestId)
The ID of the merge request for a merge request note.
Snippet(SnippetId)
The ID of the snippet for a snippet note.
Trait Implementations§
source§impl Clone for NoteableId
impl Clone for NoteableId
source§fn clone(&self) -> NoteableId
fn clone(&self) -> NoteableId
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 NoteableId
impl Debug for NoteableId
source§impl PartialEq<NoteableId> for NoteableId
impl PartialEq<NoteableId> for NoteableId
source§fn eq(&self, other: &NoteableId) -> bool
fn eq(&self, other: &NoteableId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NoteableId
impl StructuralEq for NoteableId
impl StructuralPartialEq for NoteableId
Auto Trait Implementations§
impl RefUnwindSafe for NoteableId
impl Send for NoteableId
impl Sync for NoteableId
impl Unpin for NoteableId
impl UnwindSafe for NoteableId
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.