pub struct BaseEventBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> BaseEventBuilder<S>
impl<S: State> BaseEventBuilder<S>
Sourcepub fn build(self) -> BaseEventwhere
S: IsComplete,
pub fn build(self) -> BaseEventwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: String) -> BaseEventBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: String) -> BaseEventBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
UUID v4 that identifies the event
Sourcepub fn timestamp(self, value: String) -> BaseEventBuilder<SetTimestamp<S>>where
S::Timestamp: IsUnset,
pub fn timestamp(self, value: String) -> BaseEventBuilder<SetTimestamp<S>>where
S::Timestamp: IsUnset,
Required.
Datetime (ISO 8601) of event creation in client. Should be as close to actual event creation in client as possible, this timestamp will be used for ordering of events in future release. Resolution: milliseconds (required), microseconds (optimal).
Sourcepub fn metadata(self, value: Option<Value>) -> BaseEventBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
pub fn metadata(self, value: Option<Value>) -> BaseEventBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
Sourcepub fn maybe_metadata(
self,
value: Option<Option<Value>>,
) -> BaseEventBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
pub fn maybe_metadata(
self,
value: Option<Option<Value>>,
) -> BaseEventBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for BaseEventBuilder<S>
impl<S> RefUnwindSafe for BaseEventBuilder<S>
impl<S> Send for BaseEventBuilder<S>
impl<S> Sync for BaseEventBuilder<S>
impl<S> Unpin for BaseEventBuilder<S>
impl<S> UnwindSafe for BaseEventBuilder<S>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more