Struct keri_core::state::WitnessConfig
source · pub struct WitnessConfig {
pub tally: SignatureThreshold,
pub witnesses: Vec<BasicPrefix>,
}Fields§
§tally: SignatureThreshold§witnesses: Vec<BasicPrefix>Implementations§
source§impl WitnessConfig
impl WitnessConfig
pub fn enough_receipts<I, R>(
&self,
receipts_couplets: I,
indexed_receipts: R
) -> Result<bool, Error>where
I: IntoIterator<Item = (BasicPrefix, SelfSigningPrefix)>,
R: IntoIterator<Item = IndexedSignature>,
Trait Implementations§
source§impl Clone for WitnessConfig
impl Clone for WitnessConfig
source§fn clone(&self) -> WitnessConfig
fn clone(&self) -> WitnessConfig
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 WitnessConfig
impl Debug for WitnessConfig
source§impl Default for WitnessConfig
impl Default for WitnessConfig
source§fn default() -> WitnessConfig
fn default() -> WitnessConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WitnessConfig
impl<'de> Deserialize<'de> for WitnessConfig
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<InceptionWitnessConfig> for WitnessConfig
impl From<InceptionWitnessConfig> for WitnessConfig
source§fn from(iwc: InceptionWitnessConfig) -> Self
fn from(iwc: InceptionWitnessConfig) -> Self
Converts to this type from the input type.
source§impl PartialEq for WitnessConfig
impl PartialEq for WitnessConfig
source§fn eq(&self, other: &WitnessConfig) -> bool
fn eq(&self, other: &WitnessConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for WitnessConfig
impl Serialize for WitnessConfig
impl StructuralPartialEq for WitnessConfig
Auto Trait Implementations§
impl Freeze for WitnessConfig
impl RefUnwindSafe for WitnessConfig
impl Send for WitnessConfig
impl Sync for WitnessConfig
impl Unpin for WitnessConfig
impl UnwindSafe for WitnessConfig
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