pub struct IntentRejectedWebhookPayload {
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 rejected_at: f64,
pub status: String,
pub type_: IntentRejectedWebhookPayloadType,
}Expand description
Payload for the intent.rejected webhook event.
JSON schema
{
"title": "IntentRejectedWebhookPayload",
"description": "Payload for the intent.rejected webhook event.",
"type": "object",
"required": [
"created_at",
"expires_at",
"intent_id",
"intent_type",
"rejected_at",
"status",
"type"
],
"properties": {
"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"
},
"rejected_at": {
"description": "Unix timestamp when the intent was rejected.",
"type": "number"
},
"status": {
"description": "The current status of the intent.",
"type": "string"
},
"type": {
"description": "The type of webhook event.",
"type": "string",
"enum": [
"intent.rejected"
]
}
},
"x-stainless-model": "webhooks.intent_rejected_webhook_payload"
}Fields§
§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§rejected_at: f64§status: StringThe current status of the intent.
type_: IntentRejectedWebhookPayloadTypeThe type of webhook event.
Trait Implementations§
Source§impl Clone for IntentRejectedWebhookPayload
impl Clone for IntentRejectedWebhookPayload
Source§fn clone(&self) -> IntentRejectedWebhookPayload
fn clone(&self) -> IntentRejectedWebhookPayload
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 IntentRejectedWebhookPayload
impl Debug for IntentRejectedWebhookPayload
Source§impl<'de> Deserialize<'de> for IntentRejectedWebhookPayload
impl<'de> Deserialize<'de> for IntentRejectedWebhookPayload
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<&IntentRejectedWebhookPayload> for IntentRejectedWebhookPayload
impl From<&IntentRejectedWebhookPayload> for IntentRejectedWebhookPayload
Source§fn from(value: &IntentRejectedWebhookPayload) -> Self
fn from(value: &IntentRejectedWebhookPayload) -> Self
Converts to this type from the input type.
Source§impl From<IntentRejectedWebhookPayload> for WebhookPayload
impl From<IntentRejectedWebhookPayload> for WebhookPayload
Source§fn from(value: IntentRejectedWebhookPayload) -> Self
fn from(value: IntentRejectedWebhookPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IntentRejectedWebhookPayload
impl RefUnwindSafe for IntentRejectedWebhookPayload
impl Send for IntentRejectedWebhookPayload
impl Sync for IntentRejectedWebhookPayload
impl Unpin for IntentRejectedWebhookPayload
impl UnsafeUnpin for IntentRejectedWebhookPayload
impl UnwindSafe for IntentRejectedWebhookPayload
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