#[non_exhaustive]pub enum NamespaceKind {
Organization,
User,
}Expand description
Whether a namespace is an organisation or a personal account (§3, §8).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Organization
An organisation: real roles, bot repo creation.
User
A personal account: the reduced capability set of §8.
Trait Implementations§
Source§impl Clone for NamespaceKind
impl Clone for NamespaceKind
impl Copy for NamespaceKind
Source§impl Debug for NamespaceKind
impl Debug for NamespaceKind
Source§impl<'de> Deserialize<'de> for NamespaceKind
impl<'de> Deserialize<'de> for NamespaceKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NamespaceKind
Source§impl Hash for NamespaceKind
impl Hash for NamespaceKind
Source§impl PartialEq for NamespaceKind
impl PartialEq for NamespaceKind
Source§impl Serialize for NamespaceKind
impl Serialize for NamespaceKind
impl StructuralPartialEq for NamespaceKind
Auto Trait Implementations§
impl Freeze for NamespaceKind
impl RefUnwindSafe for NamespaceKind
impl Send for NamespaceKind
impl Sync for NamespaceKind
impl Unpin for NamespaceKind
impl UnsafeUnpin for NamespaceKind
impl UnwindSafe for NamespaceKind
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