pub struct WebhookMessageReceived {
pub data: WebhookMessageReceivedData,
pub delivery_attempt: i64,
pub event: WebhookMessageReceivedEvent,
pub occurred_at: DateTime<Utc>,
}Expand description
Fired when a new message is sent in a task conversation.
JSON schema
{
"description": "Fired when a new message is sent in a task conversation.",
"type": "object",
"required": [
"data",
"delivery_attempt",
"event",
"occurred_at"
],
"properties": {
"data": {
"type": "object",
"required": [
"message_id",
"preview",
"sender_id",
"task_id"
],
"properties": {
"message_id": {
"description": "Unique message ID",
"type": "string",
"format": "uuid"
},
"preview": {
"description": "First 100 characters of the message content",
"type": "string",
"maxLength": 100
},
"sender_id": {
"description": "Account ID of the sender",
"type": "string",
"format": "uuid"
},
"task_id": {
"type": "string",
"format": "uuid"
}
}
},
"delivery_attempt": {
"type": "integer"
},
"event": {
"type": "string",
"enum": [
"message_received"
]
},
"occurred_at": {
"type": "string",
"format": "date-time"
}
}
}Fields§
§data: WebhookMessageReceivedData§delivery_attempt: i64§event: WebhookMessageReceivedEvent§occurred_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for WebhookMessageReceived
impl Clone for WebhookMessageReceived
Source§fn clone(&self) -> WebhookMessageReceived
fn clone(&self) -> WebhookMessageReceived
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 WebhookMessageReceived
impl Debug for WebhookMessageReceived
Source§impl<'de> Deserialize<'de> for WebhookMessageReceived
impl<'de> Deserialize<'de> for WebhookMessageReceived
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<WebhookMessageReceived> for WebhookEvent
impl From<WebhookMessageReceived> for WebhookEvent
Source§fn from(value: WebhookMessageReceived) -> Self
fn from(value: WebhookMessageReceived) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WebhookMessageReceived
impl RefUnwindSafe for WebhookMessageReceived
impl Send for WebhookMessageReceived
impl Sync for WebhookMessageReceived
impl Unpin for WebhookMessageReceived
impl UnsafeUnpin for WebhookMessageReceived
impl UnwindSafe for WebhookMessageReceived
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