#[repr(i32)]pub enum SignatureFormat {
Unspecified = 0,
Raw = 1,
Der = 2,
Concat = 3,
Symbolic = 10_000,
}Variants§
Unspecified = 0
Raw = 1
Signature scheme specific signature format Legacy format no longer used, except for migrations
Der = 2
ASN.1 + DER-encoding of the r and s integers, as defined in https://datatracker.ietf.org/doc/html/rfc3279#section-2.2.3
Used for ECDSA signatures
Concat = 3
Concatenation of the integers r || s in little-endian form, as defined in https://datatracker.ietf.org/doc/html/rfc8032#section-3.3
Note that this is different from the format defined in IEEE P1363, which uses concatenation in big-endian form.
Used for EdDSA signatures
Symbolic = 10_000
Symbolic crypto, must only be used for testing
Implementations§
Source§impl SignatureFormat
impl SignatureFormat
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<SignatureFormat>
pub fn from_str_name(value: &str) -> Option<SignatureFormat>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for SignatureFormat
impl Clone for SignatureFormat
Source§fn clone(&self) -> SignatureFormat
fn clone(&self) -> SignatureFormat
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SignatureFormat
Source§impl Debug for SignatureFormat
impl Debug for SignatureFormat
Source§impl Default for SignatureFormat
impl Default for SignatureFormat
Source§fn default() -> SignatureFormat
fn default() -> SignatureFormat
impl Eq for SignatureFormat
Source§impl Hash for SignatureFormat
impl Hash for SignatureFormat
Source§impl Ord for SignatureFormat
impl Ord for SignatureFormat
Source§fn cmp(&self, other: &SignatureFormat) -> Ordering
fn cmp(&self, other: &SignatureFormat) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SignatureFormat
impl PartialEq for SignatureFormat
Source§impl PartialOrd for SignatureFormat
impl PartialOrd for SignatureFormat
impl StructuralPartialEq for SignatureFormat
Source§impl TryFrom<i32> for SignatureFormat
impl TryFrom<i32> for SignatureFormat
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<SignatureFormat, UnknownEnumValue>
fn try_from(value: i32) -> Result<SignatureFormat, UnknownEnumValue>
Auto Trait Implementations§
impl Freeze for SignatureFormat
impl RefUnwindSafe for SignatureFormat
impl Send for SignatureFormat
impl Sync for SignatureFormat
impl Unpin for SignatureFormat
impl UnsafeUnpin for SignatureFormat
impl UnwindSafe for SignatureFormat
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
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
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
key and return true if they are equal.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
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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>
T in a tonic::RequestSource§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>
T in a tonic::Request