pub struct ReplyEventBuilder { /* private fields */ }Expand description
Builder for creating KERI reply events
Implementations§
Source§impl ReplyEventBuilder
impl ReplyEventBuilder
Sourcepub fn with_route(self, route: String) -> Self
pub fn with_route(self, route: String) -> Self
Set the route
Parameters: route - namespaced path, ‘/’ delimited, that indicates data flow handler (behavior) to process the reply
Sourcepub fn with_data(self, data: IndexMap<String, SadValue>) -> Self
pub fn with_data(self, data: IndexMap<String, SadValue>) -> Self
Set the data attributes
Parameters: data - attribute section of reply
Sourcepub fn with_stamp(self, stamp: String) -> Self
pub fn with_stamp(self, stamp: String) -> Self
Set the timestamp
Parameters: stamp - date-time-stamp RFC-3339 profile of ISO-8601 datetime of creation of message
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 reply event serder
Auto Trait Implementations§
impl Freeze for ReplyEventBuilder
impl RefUnwindSafe for ReplyEventBuilder
impl Send for ReplyEventBuilder
impl Sync for ReplyEventBuilder
impl Unpin for ReplyEventBuilder
impl UnsafeUnpin for ReplyEventBuilder
impl UnwindSafe for ReplyEventBuilder
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