pub enum ApiKeyCurve {
Unspecified = 0,
P256 = 2,
Secp256k1 = 3,
Ed25519 = 4,
}Expand description
Cryptographic Curve used to generate a given API key
Variants§
Implementations§
Source§impl ApiKeyCurve
impl ApiKeyCurve
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ApiKeyCurve
impl Clone for ApiKeyCurve
Source§fn clone(&self) -> ApiKeyCurve
fn clone(&self) -> ApiKeyCurve
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 ApiKeyCurve
Source§impl Debug for ApiKeyCurve
impl Debug for ApiKeyCurve
Source§impl<'de> Deserialize<'de> for ApiKeyCurve
impl<'de> Deserialize<'de> for ApiKeyCurve
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 ApiKeyCurve
Source§impl Hash for ApiKeyCurve
impl Hash for ApiKeyCurve
Source§impl Ord for ApiKeyCurve
impl Ord for ApiKeyCurve
Source§fn cmp(&self, other: &ApiKeyCurve) -> Ordering
fn cmp(&self, other: &ApiKeyCurve) -> 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
Source§impl PartialEq for ApiKeyCurve
impl PartialEq for ApiKeyCurve
Source§impl PartialOrd for ApiKeyCurve
impl PartialOrd for ApiKeyCurve
Source§impl Serialize for ApiKeyCurve
impl Serialize for ApiKeyCurve
impl StructuralPartialEq for ApiKeyCurve
Auto Trait Implementations§
impl Freeze for ApiKeyCurve
impl RefUnwindSafe for ApiKeyCurve
impl Send for ApiKeyCurve
impl Sync for ApiKeyCurve
impl Unpin for ApiKeyCurve
impl UnsafeUnpin for ApiKeyCurve
impl UnwindSafe for ApiKeyCurve
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.