pub struct WorkflowStreamAppendItem {
pub payload_envelope: Option<Value>,
pub payload_reference: Option<String>,
pub item_type: Option<String>,
pub content_type: Option<String>,
pub idempotency_key: Option<String>,
}Expand description
One item for direct or replay-safe append.
Fields§
§payload_envelope: Option<Value>§payload_reference: Option<String>§item_type: Option<String>§content_type: Option<String>§idempotency_key: Option<String>Implementations§
Source§impl WorkflowStreamAppendItem
impl WorkflowStreamAppendItem
Sourcepub fn new<T: Serialize>(payload: T) -> Result<Self>
pub fn new<T: Serialize>(payload: T) -> Result<Self>
Encode an inline payload with the SDK’s fixed Avro Value envelope.
Sourcepub fn from_reference(reference: impl Into<String>) -> Self
pub fn from_reference(reference: impl Into<String>) -> Self
Preserve an external payload URI as an opaque service-contract reference.
pub fn item_type(self, item_type: impl Into<String>) -> Self
pub fn content_type(self, content_type: impl Into<String>) -> Self
pub fn idempotency_key(self, idempotency_key: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for WorkflowStreamAppendItem
impl Clone for WorkflowStreamAppendItem
Source§fn clone(&self) -> WorkflowStreamAppendItem
fn clone(&self) -> WorkflowStreamAppendItem
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 WorkflowStreamAppendItem
impl Debug for WorkflowStreamAppendItem
Source§impl Default for WorkflowStreamAppendItem
impl Default for WorkflowStreamAppendItem
Source§fn default() -> WorkflowStreamAppendItem
fn default() -> WorkflowStreamAppendItem
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkflowStreamAppendItem
impl RefUnwindSafe for WorkflowStreamAppendItem
impl Send for WorkflowStreamAppendItem
impl Sync for WorkflowStreamAppendItem
impl Unpin for WorkflowStreamAppendItem
impl UnwindSafe for WorkflowStreamAppendItem
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