pub struct StateEventBuilder { /* private fields */ }Expand description
Builder for creating key state event records
Implementations§
Source§impl StateEventBuilder
impl StateEventBuilder
Sourcepub fn new(
pre: String,
sn: u64,
pig: String,
dig: String,
fn_: u64,
eilk: String,
keys: Vec<String>,
eevt: StateEERecord,
) -> Self
pub fn new( pre: String, sn: u64, pig: String, dig: String, fn_: u64, eilk: String, keys: Vec<String>, eevt: StateEERecord, ) -> Self
Create a new StateEventBuilder with required fields
Sourcepub fn with_stamp(self, stamp: String) -> Self
pub fn with_stamp(self, stamp: String) -> Self
Set the timestamp
Sourcepub fn with_sith(self, sith: TholderSith) -> Self
pub fn with_sith(self, sith: TholderSith) -> Self
Set the signing threshold
Sourcepub fn with_ndigs(self, ndigs: Vec<String>) -> Self
pub fn with_ndigs(self, ndigs: Vec<String>) -> Self
Set the next key digests
Sourcepub fn with_nsith(self, nsith: TholderSith) -> Self
pub fn with_nsith(self, nsith: TholderSith) -> Self
Set the next signing threshold
Sourcepub fn with_version(self, version: String) -> Self
pub fn with_version(self, version: String) -> Self
Set the version
Sourcepub fn with_intive(self, intive: bool) -> Self
pub fn with_intive(self, intive: bool) -> Self
Set whether to use integer thresholds
Auto Trait Implementations§
impl Freeze for StateEventBuilder
impl RefUnwindSafe for StateEventBuilder
impl Send for StateEventBuilder
impl Sync for StateEventBuilder
impl Unpin for StateEventBuilder
impl UnsafeUnpin for StateEventBuilder
impl UnwindSafe for StateEventBuilder
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