pub enum TholderSith {
Integer(usize),
HexString(String),
Json(String),
Weights(Vec<WeightedSithElement>),
}Expand description
Represents the different forms of signing threshold (sith)
Variants§
Integer(usize)
Non-negative integer threshold (M of N)
HexString(String)
Hex string representation of integer threshold
Json(String)
Json representation of threshold
Weights(Vec<WeightedSithElement>)
Single clause of fractional weights
Implementations§
Source§impl TholderSith
impl TholderSith
pub fn from_sad_value(val: SadValue) -> Result<Self, MatterError>
Trait Implementations§
Source§impl Clone for TholderSith
impl Clone for TholderSith
Source§fn clone(&self) -> TholderSith
fn clone(&self) -> TholderSith
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 TholderSith
impl Debug for TholderSith
Source§impl<'de> Deserialize<'de> for TholderSith
impl<'de> Deserialize<'de> for TholderSith
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 Display for TholderSith
impl Display for TholderSith
Auto Trait Implementations§
impl Freeze for TholderSith
impl RefUnwindSafe for TholderSith
impl Send for TholderSith
impl Sync for TholderSith
impl Unpin for TholderSith
impl UnsafeUnpin for TholderSith
impl UnwindSafe for TholderSith
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