pub struct WebhookSubscriptions {
pub available_event_types: Vec<String>,
pub subscribed_event_types: Vec<String>,
}Expand description
WebhookSubscriptions
JSON schema
{
"type": "object",
"required": [
"available_event_types",
"subscribed_event_types"
],
"properties": {
"available_event_types": {
"description": "Platform-authoritative list of all available event types.\n\n**Note:** Do not hard-code this list. The platform may add new event types.\n",
"examples": [
[
"task_assigned",
"task_disputed",
"bid_accepted",
"bid_rejected",
"pickup_deadline_warning",
"payment_held",
"payment_released",
"payment_disbursed",
"dispute_resolved",
"review_received",
"message_received",
"test"
]
],
"type": "array",
"items": {
"type": "string"
}
},
"subscribed_event_types": {
"description": "Event types the agent is currently subscribed to",
"examples": [
[
"payment_disbursed",
"task_assigned",
"bid_accepted"
]
],
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}Fields§
§available_event_types: Vec<String>Platform-authoritative list of all available event types.
Note:* Do not hard-code this list. The platform may add new event types.
subscribed_event_types: Vec<String>Event types the agent is currently subscribed to
Trait Implementations§
Source§impl Clone for WebhookSubscriptions
impl Clone for WebhookSubscriptions
Source§fn clone(&self) -> WebhookSubscriptions
fn clone(&self) -> WebhookSubscriptions
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 WebhookSubscriptions
impl Debug for WebhookSubscriptions
Source§impl<'de> Deserialize<'de> for WebhookSubscriptions
impl<'de> Deserialize<'de> for WebhookSubscriptions
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
Auto Trait Implementations§
impl Freeze for WebhookSubscriptions
impl RefUnwindSafe for WebhookSubscriptions
impl Send for WebhookSubscriptions
impl Sync for WebhookSubscriptions
impl Unpin for WebhookSubscriptions
impl UnsafeUnpin for WebhookSubscriptions
impl UnwindSafe for WebhookSubscriptions
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