Enum gitlab::types::NamespaceId
source · pub enum NamespaceId {
User(UserId),
Group(GroupId),
}
Expand description
The ID of a namespace.
Variants§
Trait Implementations§
source§impl Clone for NamespaceId
impl Clone for NamespaceId
source§fn clone(&self) -> NamespaceId
fn clone(&self) -> NamespaceId
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 NamespaceId
impl Debug for NamespaceId
source§impl PartialEq<NamespaceId> for NamespaceId
impl PartialEq<NamespaceId> for NamespaceId
source§fn eq(&self, other: &NamespaceId) -> bool
fn eq(&self, other: &NamespaceId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NamespaceId
impl Eq for NamespaceId
impl StructuralEq for NamespaceId
impl StructuralPartialEq for NamespaceId
Auto Trait Implementations§
impl RefUnwindSafe for NamespaceId
impl Send for NamespaceId
impl Sync for NamespaceId
impl Unpin for NamespaceId
impl UnwindSafe for NamespaceId
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.