pub struct SignalResponse {
pub id: Uuid,
pub idempotency_id: Option<String>,
pub key: String,
pub name: String,
pub payload: Map<String, Value>,
pub received_at: DateTime<Utc>,
}Expand description
A stored signal.
JSON schema
{
"description": "A stored signal.",
"type": "object",
"required": [
"id",
"key",
"name",
"payload",
"received_at"
],
"properties": {
"id": {
"description": "Signal ID.",
"type": "string",
"format": "uuid"
},
"idempotency_id": {
"description": "Deduplication ID given by the sender.",
"type": [
"string",
"null"
]
},
"key": {
"description": "Occurrence key.",
"type": "string"
},
"name": {
"description": "Signal name.",
"type": "string"
},
"payload": {
"description": "JSON payload.",
"type": "object"
},
"received_at": {
"description": "When the signal was received.",
"type": "string",
"format": "date-time"
}
}
}
```ignore
</details>Fields§
§id: UuidSignal ID.
idempotency_id: Option<String>Deduplication ID given by the sender.
key: StringOccurrence key.
name: StringSignal name.
payload: Map<String, Value>JSON payload.
received_at: DateTime<Utc>When the signal was received.
Implementations§
Source§impl SignalResponse
impl SignalResponse
pub fn builder() -> SignalResponse
Trait Implementations§
Source§impl Clone for SignalResponse
impl Clone for SignalResponse
Source§impl Debug for SignalResponse
impl Debug for SignalResponse
Source§impl<'de> Deserialize<'de> for SignalResponse
impl<'de> Deserialize<'de> for SignalResponse
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<SignalResponse> for SignalResponse
impl From<SignalResponse> for SignalResponse
Source§fn from(value: SignalResponse) -> Self
fn from(value: SignalResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for SignalResponse
impl Serialize for SignalResponse
Source§impl TryFrom<SignalResponse> for SignalResponse
impl TryFrom<SignalResponse> for SignalResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: SignalResponse) -> Result<Self, ConversionError>
fn try_from(value: SignalResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for SignalResponse
impl RefUnwindSafe for SignalResponse
impl Send for SignalResponse
impl Sync for SignalResponse
impl Unpin for SignalResponse
impl UnsafeUnpin for SignalResponse
impl UnwindSafe for SignalResponse
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