pub struct IntentFailedWebhookPayload {
pub action_result: BaseActionResult,
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_: IntentFailedWebhookPayloadType,
}Expand description
Payload for the intent.failed webhook event.
JSON schema
{
"title": "IntentFailedWebhookPayload",
"description": "Payload for the intent.failed webhook event.",
"type": "object",
"required": [
"action_result",
"created_at",
"expires_at",
"intent_id",
"intent_type",
"status",
"type"
],
"properties": {
"action_result": {
"title": "BaseActionResult",
"description": "Result of the failed intent execution.",
"allOf": [
{
"$ref": "#/components/schemas/BaseActionResult"
},
{
"type": "object",
"properties": {
"response_body": {
"description": "Response from the execution."
}
}
}
],
"x-stainless-model": "intents.base_action_result"
},
"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.failed"
]
}
},
"x-stainless-model": "webhooks.intent_failed_webhook_payload"
}Fields§
§action_result: BaseActionResult§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_: IntentFailedWebhookPayloadTypeThe type of webhook event.
Trait Implementations§
Source§impl Clone for IntentFailedWebhookPayload
impl Clone for IntentFailedWebhookPayload
Source§fn clone(&self) -> IntentFailedWebhookPayload
fn clone(&self) -> IntentFailedWebhookPayload
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 IntentFailedWebhookPayload
impl Debug for IntentFailedWebhookPayload
Source§impl<'de> Deserialize<'de> for IntentFailedWebhookPayload
impl<'de> Deserialize<'de> for IntentFailedWebhookPayload
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<&IntentFailedWebhookPayload> for IntentFailedWebhookPayload
impl From<&IntentFailedWebhookPayload> for IntentFailedWebhookPayload
Source§fn from(value: &IntentFailedWebhookPayload) -> Self
fn from(value: &IntentFailedWebhookPayload) -> Self
Converts to this type from the input type.
Source§impl From<IntentFailedWebhookPayload> for WebhookPayload
impl From<IntentFailedWebhookPayload> for WebhookPayload
Source§fn from(value: IntentFailedWebhookPayload) -> Self
fn from(value: IntentFailedWebhookPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IntentFailedWebhookPayload
impl RefUnwindSafe for IntentFailedWebhookPayload
impl Send for IntentFailedWebhookPayload
impl Sync for IntentFailedWebhookPayload
impl Unpin for IntentFailedWebhookPayload
impl UnsafeUnpin for IntentFailedWebhookPayload
impl UnwindSafe for IntentFailedWebhookPayload
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