pub struct CreateGenerationEventBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> CreateGenerationEventBuilder<S>
impl<S: State> CreateGenerationEventBuilder<S>
Sourcepub fn build(self) -> CreateGenerationEventwhere
S: IsComplete,
pub fn build(self) -> CreateGenerationEventwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: String) -> CreateGenerationEventBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: String) -> CreateGenerationEventBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
UUID v4 that identifies the event
Sourcepub fn timestamp(
self,
value: String,
) -> CreateGenerationEventBuilder<SetTimestamp<S>>where
S::Timestamp: IsUnset,
pub fn timestamp(
self,
value: String,
) -> CreateGenerationEventBuilder<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>,
) -> CreateGenerationEventBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
pub fn metadata(
self,
value: Option<Value>,
) -> CreateGenerationEventBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
Sourcepub fn maybe_metadata(
self,
value: Option<Option<Value>>,
) -> CreateGenerationEventBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
pub fn maybe_metadata(
self,
value: Option<Option<Value>>,
) -> CreateGenerationEventBuilder<SetMetadata<S>>where
S::Metadata: IsUnset,
Sourcepub fn body(
self,
value: Box<CreateGenerationBody>,
) -> CreateGenerationEventBuilder<SetBody<S>>where
S::Body: IsUnset,
pub fn body(
self,
value: Box<CreateGenerationBody>,
) -> CreateGenerationEventBuilder<SetBody<S>>where
S::Body: IsUnset,
Required.
Auto Trait Implementations§
impl<S> Freeze for CreateGenerationEventBuilder<S>
impl<S> RefUnwindSafe for CreateGenerationEventBuilder<S>
impl<S> Send for CreateGenerationEventBuilder<S>
impl<S> Sync for CreateGenerationEventBuilder<S>
impl<S> Unpin for CreateGenerationEventBuilder<S>
impl<S> UnwindSafe for CreateGenerationEventBuilder<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