#[non_exhaustive]pub struct WorkflowSignalSnapshot {
pub signal_id: String,
pub name: String,
pub payload: JsonValue,
pub received_at: DateTime<Utc>,
pub received_sequence: u64,
pub consumed_by: Option<String>,
}Expand description
A received signal together with its durable history position.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.signal_id: StringCaller-owned idempotency identity.
name: StringDeclared signal contract name.
payload: JsonValueApplication-defined JSON payload.
received_at: DateTime<Utc>UTC time at which the signal was persisted.
received_sequence: u64Event sequence that recorded the delivery.
consumed_by: Option<String>Stable wait identity that consumed the signal.
Implementations§
Source§impl WorkflowSignalSnapshot
impl WorkflowSignalSnapshot
Sourcepub fn payload_as<T>(&self) -> Result<T>where
T: DeserializeOwned,
pub fn payload_as<T>(&self) -> Result<T>where
T: DeserializeOwned,
Decode the persisted signal payload into a host-defined serde type.
Trait Implementations§
Source§impl Clone for WorkflowSignalSnapshot
impl Clone for WorkflowSignalSnapshot
Source§fn clone(&self) -> WorkflowSignalSnapshot
fn clone(&self) -> WorkflowSignalSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkflowSignalSnapshot
impl Debug for WorkflowSignalSnapshot
Source§impl<'de> Deserialize<'de> for WorkflowSignalSnapshot
impl<'de> Deserialize<'de> for WorkflowSignalSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkflowSignalSnapshot
impl PartialEq for WorkflowSignalSnapshot
Source§impl Serialize for WorkflowSignalSnapshot
impl Serialize for WorkflowSignalSnapshot
impl StructuralPartialEq for WorkflowSignalSnapshot
Auto Trait Implementations§
impl Freeze for WorkflowSignalSnapshot
impl RefUnwindSafe for WorkflowSignalSnapshot
impl Send for WorkflowSignalSnapshot
impl Sync for WorkflowSignalSnapshot
impl Unpin for WorkflowSignalSnapshot
impl UnsafeUnpin for WorkflowSignalSnapshot
impl UnwindSafe for WorkflowSignalSnapshot
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