pub struct InteractEventBuilder { /* private fields */ }Expand description
Builder for creating KERI interaction events
Implementations§
Source§impl InteractEventBuilder
impl InteractEventBuilder
Sourcepub fn new(pre: String, dig: String) -> Self
pub fn new(pre: String, dig: String) -> Self
Create a new InteractEventBuilder with required fields
Sourcepub fn with_data_list(self, data: Vec<SadValue>) -> Self
pub fn with_data_list(self, data: Vec<SadValue>) -> Self
Set the committed data (such as seals)
Sourcepub fn with_data_map(self, data: IndexMap<String, SadValue>) -> Self
pub fn with_data_map(self, data: IndexMap<String, SadValue>) -> Self
Set the committed data (such as seals)
Sourcepub fn with_version(self, version: String) -> Self
pub fn with_version(self, version: String) -> Self
Set the version string
Sourcepub fn build(self) -> Result<SerderKERI, KERIError>
pub fn build(self) -> Result<SerderKERI, KERIError>
Build the interaction event serder
Auto Trait Implementations§
impl Freeze for InteractEventBuilder
impl RefUnwindSafe for InteractEventBuilder
impl Send for InteractEventBuilder
impl Sync for InteractEventBuilder
impl Unpin for InteractEventBuilder
impl UnsafeUnpin for InteractEventBuilder
impl UnwindSafe for InteractEventBuilder
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