#[non_exhaustive]pub enum SignAlgorithm {
EdDsa,
Es256,
}Available on crate feature
keys only.Expand description
EdDSA pairs with an ed25519 key; ES256 pairs with a p256 key. An x25519 key performs key agreement and can sign nothing, so no algorithm here is valid for one. The enumeration is closed: an unrecognised algorithm is refused rather than silently substituted with a supported one.
JSON schema
{
"title": "SignAlgorithm",
"description": "`EdDSA` pairs with an `ed25519` key; `ES256` pairs with a `p256` key. An `x25519` key performs key agreement and can sign nothing, so no algorithm here is valid for one. The enumeration is closed: an unrecognised algorithm is refused rather than silently substituted with a supported one.",
"type": "string",
"enum": [
"EdDSA",
"ES256"
]
}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.
Trait Implementations§
Source§impl Clone for SignAlgorithm
impl Clone for SignAlgorithm
Source§fn clone(&self) -> SignAlgorithm
fn clone(&self) -> SignAlgorithm
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 SignAlgorithm
Source§impl Debug for SignAlgorithm
impl Debug for SignAlgorithm
Source§impl<'de> Deserialize<'de> for SignAlgorithm
impl<'de> Deserialize<'de> for SignAlgorithm
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SignAlgorithm, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SignAlgorithm, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SignAlgorithm
impl Display for SignAlgorithm
impl Eq for SignAlgorithm
Source§impl FromStr for SignAlgorithm
impl FromStr for SignAlgorithm
Source§type Err = ConversionError
type Err = ConversionError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<SignAlgorithm, ConversionError>
fn from_str(value: &str) -> Result<SignAlgorithm, ConversionError>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for SignAlgorithm
impl Hash for SignAlgorithm
Source§impl Ord for SignAlgorithm
impl Ord for SignAlgorithm
Source§fn cmp(&self, other: &SignAlgorithm) -> Ordering
fn cmp(&self, other: &SignAlgorithm) -> 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 SignAlgorithm
impl PartialEq for SignAlgorithm
Source§impl PartialOrd for SignAlgorithm
impl PartialOrd for SignAlgorithm
Source§impl Serialize for SignAlgorithm
impl Serialize for SignAlgorithm
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SignAlgorithm
Source§impl TryFrom<&String> for SignAlgorithm
impl TryFrom<&String> for SignAlgorithm
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: &String) -> Result<SignAlgorithm, ConversionError>
fn try_from(value: &String) -> Result<SignAlgorithm, ConversionError>
Performs the conversion.
Source§impl TryFrom<&str> for SignAlgorithm
impl TryFrom<&str> for SignAlgorithm
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: &str) -> Result<SignAlgorithm, ConversionError>
fn try_from(value: &str) -> Result<SignAlgorithm, ConversionError>
Performs the conversion.
Source§impl TryFrom<String> for SignAlgorithm
impl TryFrom<String> for SignAlgorithm
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: String) -> Result<SignAlgorithm, ConversionError>
fn try_from(value: String) -> Result<SignAlgorithm, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SignAlgorithm
impl RefUnwindSafe for SignAlgorithm
impl Send for SignAlgorithm
impl Sync for SignAlgorithm
impl Unpin for SignAlgorithm
impl UnsafeUnpin for SignAlgorithm
impl UnwindSafe for SignAlgorithm
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
impl<T, U> DeserializeTypedOwned<T> for Uwhere
U: for<'de> DeserializeTyped<'de, T>,
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.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
fn equivalent(&self, key: &K) -> bool
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.