#[non_exhaustive]pub struct FlowExecutionMessageBuilder { /* private fields */ }
Expand description
A builder for FlowExecutionMessage
.
Implementations§
source§impl FlowExecutionMessageBuilder
impl FlowExecutionMessageBuilder
sourcepub fn message_id(self, input: impl Into<String>) -> Self
pub fn message_id(self, input: impl Into<String>) -> Self
The unique identifier of the message.
sourcepub fn set_message_id(self, input: Option<String>) -> Self
pub fn set_message_id(self, input: Option<String>) -> Self
The unique identifier of the message.
sourcepub fn get_message_id(&self) -> &Option<String>
pub fn get_message_id(&self) -> &Option<String>
The unique identifier of the message.
sourcepub fn event_type(self, input: FlowExecutionEventType) -> Self
pub fn event_type(self, input: FlowExecutionEventType) -> Self
The type of flow event .
sourcepub fn set_event_type(self, input: Option<FlowExecutionEventType>) -> Self
pub fn set_event_type(self, input: Option<FlowExecutionEventType>) -> Self
The type of flow event .
sourcepub fn get_event_type(&self) -> &Option<FlowExecutionEventType>
pub fn get_event_type(&self) -> &Option<FlowExecutionEventType>
The type of flow event .
sourcepub fn timestamp(self, input: DateTime) -> Self
pub fn timestamp(self, input: DateTime) -> Self
The date and time when the message was last updated.
sourcepub fn set_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_timestamp(self, input: Option<DateTime>) -> Self
The date and time when the message was last updated.
sourcepub fn get_timestamp(&self) -> &Option<DateTime>
pub fn get_timestamp(&self) -> &Option<DateTime>
The date and time when the message was last updated.
sourcepub fn payload(self, input: impl Into<String>) -> Self
pub fn payload(self, input: impl Into<String>) -> Self
A string containing information about the flow event.
sourcepub fn set_payload(self, input: Option<String>) -> Self
pub fn set_payload(self, input: Option<String>) -> Self
A string containing information about the flow event.
sourcepub fn get_payload(&self) -> &Option<String>
pub fn get_payload(&self) -> &Option<String>
A string containing information about the flow event.
sourcepub fn build(self) -> FlowExecutionMessage
pub fn build(self) -> FlowExecutionMessage
Consumes the builder and constructs a FlowExecutionMessage
.
Trait Implementations§
source§impl Clone for FlowExecutionMessageBuilder
impl Clone for FlowExecutionMessageBuilder
source§fn clone(&self) -> FlowExecutionMessageBuilder
fn clone(&self) -> FlowExecutionMessageBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FlowExecutionMessageBuilder
impl Debug for FlowExecutionMessageBuilder
source§impl Default for FlowExecutionMessageBuilder
impl Default for FlowExecutionMessageBuilder
source§fn default() -> FlowExecutionMessageBuilder
fn default() -> FlowExecutionMessageBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for FlowExecutionMessageBuilder
impl PartialEq for FlowExecutionMessageBuilder
source§fn eq(&self, other: &FlowExecutionMessageBuilder) -> bool
fn eq(&self, other: &FlowExecutionMessageBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FlowExecutionMessageBuilder
Auto Trait Implementations§
impl RefUnwindSafe for FlowExecutionMessageBuilder
impl Send for FlowExecutionMessageBuilder
impl Sync for FlowExecutionMessageBuilder
impl Unpin for FlowExecutionMessageBuilder
impl UnwindSafe for FlowExecutionMessageBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.