pub enum SignatureType {
Single,
Threshold {
threshold: u8,
total: u8,
},
Multi {
required: u8,
},
}Expand description
Signature type for agreements
Variants§
Single
Single ECDSA/Ed25519 signature
Threshold
Threshold signature (t-of-n)
Multi
Multi-signature (all required)
Trait Implementations§
Source§impl Clone for SignatureType
impl Clone for SignatureType
Source§fn clone(&self) -> SignatureType
fn clone(&self) -> SignatureType
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 moreSource§impl Debug for SignatureType
impl Debug for SignatureType
Source§impl<'de> Deserialize<'de> for SignatureType
impl<'de> Deserialize<'de> for SignatureType
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 PartialEq for SignatureType
impl PartialEq for SignatureType
Source§fn eq(&self, other: &SignatureType) -> bool
fn eq(&self, other: &SignatureType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SignatureType
impl Serialize for SignatureType
impl Eq for SignatureType
impl StructuralPartialEq for SignatureType
Auto Trait Implementations§
impl Freeze for SignatureType
impl RefUnwindSafe for SignatureType
impl Send for SignatureType
impl Sync for SignatureType
impl Unpin for SignatureType
impl UnsafeUnpin for SignatureType
impl UnwindSafe for SignatureType
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