pub enum MintableKeyRole {
Read,
Write,
}Expand description
The role an API key carries: read or write. API keys cannot be granted
admin or owner; those roles are held only by interactive logins and OIDC
trust relationships.
JSON schema
{
"description": "The role an API key carries: `read` or `write`. API keys cannot be granted\n`admin` or `owner`; those roles are held only by interactive logins and OIDC\ntrust relationships.",
"type": "string",
"enum": [
"read",
"write"
]
}Variants§
Trait Implementations§
Source§impl Clone for MintableKeyRole
impl Clone for MintableKeyRole
Source§fn clone(&self) -> MintableKeyRole
fn clone(&self) -> MintableKeyRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MintableKeyRole
Source§impl Debug for MintableKeyRole
impl Debug for MintableKeyRole
Source§impl<'de> Deserialize<'de> for MintableKeyRole
impl<'de> Deserialize<'de> for MintableKeyRole
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
Source§impl Display for MintableKeyRole
impl Display for MintableKeyRole
impl Eq for MintableKeyRole
Source§impl From<&MintableKeyRole> for MintableKeyRole
impl From<&MintableKeyRole> for MintableKeyRole
Source§fn from(value: &MintableKeyRole) -> Self
fn from(value: &MintableKeyRole) -> Self
Converts to this type from the input type.
Source§impl FromStr for MintableKeyRole
impl FromStr for MintableKeyRole
Source§impl Hash for MintableKeyRole
impl Hash for MintableKeyRole
Source§impl Ord for MintableKeyRole
impl Ord for MintableKeyRole
Source§fn cmp(&self, other: &MintableKeyRole) -> Ordering
fn cmp(&self, other: &MintableKeyRole) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MintableKeyRole
impl PartialEq for MintableKeyRole
Source§impl PartialOrd for MintableKeyRole
impl PartialOrd for MintableKeyRole
Source§impl Serialize for MintableKeyRole
impl Serialize for MintableKeyRole
impl StructuralPartialEq for MintableKeyRole
Source§impl TryFrom<&String> for MintableKeyRole
impl TryFrom<&String> for MintableKeyRole
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for MintableKeyRole
impl TryFrom<&str> for MintableKeyRole
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for MintableKeyRole
impl TryFrom<String> for MintableKeyRole
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for MintableKeyRole
impl RefUnwindSafe for MintableKeyRole
impl Send for MintableKeyRole
impl Sync for MintableKeyRole
impl Unpin for MintableKeyRole
impl UnsafeUnpin for MintableKeyRole
impl UnwindSafe for MintableKeyRole
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.