pub struct KeverBuilder { /* private fields */ }Expand description
KeverBuilder provides a builder pattern for constructing a Kever instance Each optional parameter of Kever::new is represented by a with_* method
Implementations§
Source§impl KeverBuilder
impl KeverBuilder
Sourcepub fn with_locals(self, locals: Locals) -> Self
pub fn with_locals(self, locals: Locals) -> Self
Set the locally controlled identifiers used during validation
Sourcepub fn with_state(self, state: KeyStateRecord) -> Self
pub fn with_state(self, state: KeyStateRecord) -> Self
Set the key state record
Sourcepub fn with_serder(self, serder: SerderKERI) -> Self
pub fn with_serder(self, serder: SerderKERI) -> Self
Set the serialized event data
Sourcepub fn with_sigers(self, sigers: Vec<Siger>) -> Self
pub fn with_sigers(self, sigers: Vec<Siger>) -> Self
Set the list of indexed controller signatures
Sourcepub fn with_wigers(self, wigers: Vec<Siger>) -> Self
pub fn with_wigers(self, wigers: Vec<Siger>) -> Self
Set the list of indexed witness signatures
Sourcepub fn with_est_only(self, est_only: bool) -> Self
pub fn with_est_only(self, est_only: bool) -> Self
Set the establishment only events flag
Sourcepub fn with_delseqner(self, delseqner: Seqner) -> Self
pub fn with_delseqner(self, delseqner: Seqner) -> Self
Set the delegating event sequence number
Sourcepub fn with_delsaider(self, delsaider: Saider) -> Self
pub fn with_delsaider(self, delsaider: Saider) -> Self
Set the delegating event SAID
Sourcepub fn with_firner(self, firner: Seqner) -> Self
pub fn with_firner(self, firner: Seqner) -> Self
Set the first seen ordinal number
Sourcepub fn with_dater(self, dater: Dater) -> Self
pub fn with_dater(self, dater: Dater) -> Self
Set the first seen timestamp
Sourcepub fn with_eager(self, eager: bool) -> Self
pub fn with_eager(self, eager: bool) -> Self
Set the eager validation flag
Sourcepub fn with_local(self, local: bool) -> Self
pub fn with_local(self, local: bool) -> Self
Set the local flag for event source validation logic
Sourcepub fn with_check(self, check: bool) -> Self
pub fn with_check(self, check: bool) -> Self
Set the check flag for database update control
Auto Trait Implementations§
impl Freeze for KeverBuilder
impl RefUnwindSafe for KeverBuilder
impl Send for KeverBuilder
impl Sync for KeverBuilder
impl Unpin for KeverBuilder
impl UnsafeUnpin for KeverBuilder
impl UnwindSafe for KeverBuilder
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