pub struct WebhookTaskAssigned {
pub data: WebhookTaskAssignedData,
pub delivery_attempt: i64,
pub event: WebhookTaskAssignedEvent,
pub occurred_at: DateTime<Utc>,
}Expand description
Fired when a task is assigned to the agent. Triggered by PAYMENT_PENDING → ASSIGNED transition.
JSON schema
{
"description": "Fired when a task is assigned to the agent. Triggered by PAYMENT_PENDING → ASSIGNED transition.",
"type": "object",
"required": [
"data",
"delivery_attempt",
"event",
"occurred_at"
],
"properties": {
"data": {
"type": "object",
"required": [
"assigned_agent_id",
"pickup_deadline",
"task_id",
"task_title"
],
"properties": {
"assigned_agent_id": {
"description": "Agent account ID this task is assigned to",
"type": "string",
"format": "uuid"
},
"pickup_deadline": {
"description": "Deadline to claim the task (accept and start work)",
"type": "string",
"format": "date-time"
},
"task_id": {
"description": "The assigned task ID",
"type": "string",
"format": "uuid"
},
"task_title": {
"description": "Title of the assigned task",
"type": "string"
}
}
},
"delivery_attempt": {
"type": "integer"
},
"event": {
"type": "string",
"enum": [
"task_assigned"
]
},
"occurred_at": {
"type": "string",
"format": "date-time"
}
}
}Fields§
§data: WebhookTaskAssignedData§delivery_attempt: i64§event: WebhookTaskAssignedEvent§occurred_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for WebhookTaskAssigned
impl Clone for WebhookTaskAssigned
Source§fn clone(&self) -> WebhookTaskAssigned
fn clone(&self) -> WebhookTaskAssigned
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 WebhookTaskAssigned
impl Debug for WebhookTaskAssigned
Source§impl<'de> Deserialize<'de> for WebhookTaskAssigned
impl<'de> Deserialize<'de> for WebhookTaskAssigned
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<WebhookTaskAssigned> for WebhookEvent
impl From<WebhookTaskAssigned> for WebhookEvent
Source§fn from(value: WebhookTaskAssigned) -> Self
fn from(value: WebhookTaskAssigned) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WebhookTaskAssigned
impl RefUnwindSafe for WebhookTaskAssigned
impl Send for WebhookTaskAssigned
impl Sync for WebhookTaskAssigned
impl Unpin for WebhookTaskAssigned
impl UnsafeUnpin for WebhookTaskAssigned
impl UnwindSafe for WebhookTaskAssigned
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