Enum redgold_schema::structs::PublicKeyType
source · #[repr(i32)]pub enum PublicKeyType {
Secp256k1 = 0,
}Expand description
Future placeholder in the event of use of different public key types, will eventually cover ed25519 etc.
Variants§
Secp256k1 = 0
ECDSA Standard key type matching ECDSA signature type above
Implementations§
Trait Implementations§
source§impl Clone for PublicKeyType
impl Clone for PublicKeyType
source§fn clone(&self) -> PublicKeyType
fn clone(&self) -> PublicKeyType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PublicKeyType
impl Debug for PublicKeyType
source§impl Default for PublicKeyType
impl Default for PublicKeyType
source§fn default() -> PublicKeyType
fn default() -> PublicKeyType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PublicKeyType
impl<'de> Deserialize<'de> for PublicKeyType
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 From<PublicKeyType> for i32
impl From<PublicKeyType> for i32
source§fn from(value: PublicKeyType) -> i32
fn from(value: PublicKeyType) -> i32
Converts to this type from the input type.
source§impl FromStr for PublicKeyType
impl FromStr for PublicKeyType
source§impl Hash for PublicKeyType
impl Hash for PublicKeyType
source§impl IntoEnumIterator for PublicKeyType
impl IntoEnumIterator for PublicKeyType
type Iterator = PublicKeyTypeIter
fn iter() -> PublicKeyTypeIter ⓘ
source§impl Ord for PublicKeyType
impl Ord for PublicKeyType
source§fn cmp(&self, other: &PublicKeyType) -> Ordering
fn cmp(&self, other: &PublicKeyType) -> Ordering
1.21.0 · 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 PublicKeyType
impl PartialEq for PublicKeyType
source§fn eq(&self, other: &PublicKeyType) -> bool
fn eq(&self, other: &PublicKeyType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for PublicKeyType
impl PartialOrd for PublicKeyType
source§fn partial_cmp(&self, other: &PublicKeyType) -> Option<Ordering>
fn partial_cmp(&self, other: &PublicKeyType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKeyType
impl Serialize for PublicKeyType
source§impl TryFrom<&str> for PublicKeyType
impl TryFrom<&str> for PublicKeyType
impl Copy for PublicKeyType
impl Eq for PublicKeyType
impl StructuralEq for PublicKeyType
impl StructuralPartialEq for PublicKeyType
Auto Trait Implementations§
impl RefUnwindSafe for PublicKeyType
impl Send for PublicKeyType
impl Sync for PublicKeyType
impl Unpin for PublicKeyType
impl UnwindSafe for PublicKeyType
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