pub struct PublicKeyParams {
pub public_keys: Vec<Bytes32>,
pub threshold: Option<u8>,
pub kind: Option<u8>,
}
Fields§
§public_keys: Vec<Bytes32>
§threshold: Option<u8>
§kind: Option<u8>
Implementations§
Source§impl PublicKeyParams
impl PublicKeyParams
pub fn validate(&self) -> Result<(), Error>
pub fn verifying_threshold(&self, level: ThresholdLevel) -> u8
Trait Implementations§
Source§impl Clone for PublicKeyParams
impl Clone for PublicKeyParams
Source§fn clone(&self) -> PublicKeyParams
fn clone(&self) -> PublicKeyParams
Returns a duplicate 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 PublicKeyParams
impl Debug for PublicKeyParams
Source§impl Default for PublicKeyParams
impl Default for PublicKeyParams
Source§fn default() -> PublicKeyParams
fn default() -> PublicKeyParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PublicKeyParams
impl<'de> Deserialize<'de> for PublicKeyParams
Source§fn deserialize<D>(deserializer: D) -> Result<PublicKeyParams, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<PublicKeyParams, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PublicKeyParams> for Value
impl From<&PublicKeyParams> for Value
Source§fn from(params: &PublicKeyParams) -> Self
fn from(params: &PublicKeyParams) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PublicKeyParams
impl PartialEq for PublicKeyParams
Source§impl Serialize for PublicKeyParams
impl Serialize for PublicKeyParams
Source§impl TryFrom<&Value> for PublicKeyParams
impl TryFrom<&Value> for PublicKeyParams
impl Eq for PublicKeyParams
impl StructuralPartialEq for PublicKeyParams
Auto Trait Implementations§
impl Freeze for PublicKeyParams
impl RefUnwindSafe for PublicKeyParams
impl Send for PublicKeyParams
impl Sync for PublicKeyParams
impl Unpin for PublicKeyParams
impl UnwindSafe for PublicKeyParams
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