pub struct IntentCreatedWebhookPayload {
pub authorization_details: Vec<IntentAuthorization>,
pub created_at: f64,
pub created_by_display_name: Option<String>,
pub created_by_id: Option<String>,
pub expires_at: f64,
pub intent_id: String,
pub intent_type: IntentType,
pub status: String,
pub type_: IntentCreatedWebhookPayloadType,
}Expand description
Payload for the intent.created webhook event.
JSON schema
{
"title": "IntentCreatedWebhookPayload",
"description": "Payload for the intent.created webhook event.",
"type": "object",
"required": [
"created_at",
"expires_at",
"intent_id",
"intent_type",
"status",
"type"
],
"properties": {
"authorization_details": {
"description": "Key quorums that can authorize this intent.",
"type": "array",
"items": {
"$ref": "#/components/schemas/IntentAuthorization"
}
},
"created_at": {
"description": "Unix timestamp when the intent was created.",
"type": "number"
},
"created_by_display_name": {
"description": "Display name of the user who created the intent.",
"type": "string"
},
"created_by_id": {
"description": "The ID of the user who created the intent.",
"type": "string"
},
"expires_at": {
"description": "Unix timestamp when the intent expires.",
"type": "number"
},
"intent_id": {
"description": "The unique ID of the intent.",
"type": "string"
},
"intent_type": {
"$ref": "#/components/schemas/IntentType"
},
"status": {
"description": "The current status of the intent.",
"type": "string"
},
"type": {
"description": "The type of webhook event.",
"type": "string",
"enum": [
"intent.created"
]
}
},
"x-stainless-model": "webhooks.intent_created_webhook_payload"
}Fields§
Key quorums that can authorize this intent.
created_at: f64§created_by_display_name: Option<String>Display name of the user who created the intent.
created_by_id: Option<String>The ID of the user who created the intent.
expires_at: f64§intent_id: StringThe unique ID of the intent.
intent_type: IntentType§status: StringThe current status of the intent.
type_: IntentCreatedWebhookPayloadTypeThe type of webhook event.
Trait Implementations§
Source§impl Clone for IntentCreatedWebhookPayload
impl Clone for IntentCreatedWebhookPayload
Source§fn clone(&self) -> IntentCreatedWebhookPayload
fn clone(&self) -> IntentCreatedWebhookPayload
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 IntentCreatedWebhookPayload
impl Debug for IntentCreatedWebhookPayload
Source§impl<'de> Deserialize<'de> for IntentCreatedWebhookPayload
impl<'de> Deserialize<'de> for IntentCreatedWebhookPayload
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<&IntentCreatedWebhookPayload> for IntentCreatedWebhookPayload
impl From<&IntentCreatedWebhookPayload> for IntentCreatedWebhookPayload
Source§fn from(value: &IntentCreatedWebhookPayload) -> Self
fn from(value: &IntentCreatedWebhookPayload) -> Self
Converts to this type from the input type.
Source§impl From<IntentCreatedWebhookPayload> for WebhookPayload
impl From<IntentCreatedWebhookPayload> for WebhookPayload
Source§fn from(value: IntentCreatedWebhookPayload) -> Self
fn from(value: IntentCreatedWebhookPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IntentCreatedWebhookPayload
impl RefUnwindSafe for IntentCreatedWebhookPayload
impl Send for IntentCreatedWebhookPayload
impl Sync for IntentCreatedWebhookPayload
impl Unpin for IntentCreatedWebhookPayload
impl UnsafeUnpin for IntentCreatedWebhookPayload
impl UnwindSafe for IntentCreatedWebhookPayload
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