pub struct SignalDeliveryResponse {
pub duplicate: bool,
pub rejected: Vec<RejectedRunResponse>,
pub resumed: Vec<ResumedRunResponse>,
pub signal_id: Uuid,
}Expand description
Result of sending a signal.
JSON schema
{
"description": "Result of sending a signal.",
"type": "object",
"required": [
"duplicate",
"rejected",
"resumed",
"signal_id"
],
"properties": {
"duplicate": {
"description": "`true` when the idempotency ID was already used: nothing was delivered.",
"type": "boolean"
},
"rejected": {
"description": "Waiting runs that rejected the payload and keep waiting.",
"type": "array",
"items": {
"$ref": "#/components/schemas/RejectedRunResponse"
}
},
"resumed": {
"description": "Runs the signal resumed.",
"type": "array",
"items": {
"$ref": "#/components/schemas/ResumedRunResponse"
}
},
"signal_id": {
"description": "ID of the stored signal (the pre-existing one on a duplicate).",
"type": "string",
"format": "uuid"
}
}
}
```ignore
</details>Fields§
§duplicate: booltrue when the idempotency ID was already used: nothing was delivered.
rejected: Vec<RejectedRunResponse>Waiting runs that rejected the payload and keep waiting.
resumed: Vec<ResumedRunResponse>Runs the signal resumed.
signal_id: UuidID of the stored signal (the pre-existing one on a duplicate).
Implementations§
Source§impl SignalDeliveryResponse
impl SignalDeliveryResponse
pub fn builder() -> SignalDeliveryResponse
Trait Implementations§
Source§impl Clone for SignalDeliveryResponse
impl Clone for SignalDeliveryResponse
Source§impl Debug for SignalDeliveryResponse
impl Debug for SignalDeliveryResponse
Source§impl<'de> Deserialize<'de> for SignalDeliveryResponse
impl<'de> Deserialize<'de> for SignalDeliveryResponse
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 From<SignalDeliveryResponse> for SignalDeliveryResponse
impl From<SignalDeliveryResponse> for SignalDeliveryResponse
Source§fn from(value: SignalDeliveryResponse) -> Self
fn from(value: SignalDeliveryResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for SignalDeliveryResponse
impl Serialize for SignalDeliveryResponse
Source§impl TryFrom<SignalDeliveryResponse> for SignalDeliveryResponse
impl TryFrom<SignalDeliveryResponse> for SignalDeliveryResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SignalDeliveryResponse) -> Result<Self, ConversionError>
fn try_from(value: SignalDeliveryResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SignalDeliveryResponse
impl RefUnwindSafe for SignalDeliveryResponse
impl Send for SignalDeliveryResponse
impl Sync for SignalDeliveryResponse
impl Unpin for SignalDeliveryResponse
impl UnsafeUnpin for SignalDeliveryResponse
impl UnwindSafe for SignalDeliveryResponse
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