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§impl Debug for WorkflowStreamAppendItem
impl Debug for WorkflowStreamAppendItem
Auto Trait Implementations§
impl Forget for WorkflowStreamAppendItem
impl Freeze for WorkflowStreamAppendItemwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for WorkflowStreamAppendItem
impl RefUnwindSafe for WorkflowStreamAppendItem
impl Send for WorkflowStreamAppendItem
impl Sync for WorkflowStreamAppendItem
impl Unpin for WorkflowStreamAppendItem
impl UnsafeUnpin for WorkflowStreamAppendItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
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