pub struct IntentAuthorizedWebhookPayload {
pub authorized_at: f64,
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 member: IntentAuthorizationKeyQuorumMember,
pub status: String,
pub type_: IntentAuthorizedWebhookPayloadType,
}Expand description
Payload for the intent.authorized webhook event.
JSON schema
{
"title": "IntentAuthorizedWebhookPayload",
"description": "Payload for the intent.authorized webhook event.",
"type": "object",
"required": [
"authorized_at",
"created_at",
"expires_at",
"intent_id",
"intent_type",
"member",
"status",
"type"
],
"properties": {
"authorized_at": {
"description": "Unix timestamp when the authorization was
recorded.",
"type": "number"
},
"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"
},
"member": {
"allOf": [
{
"$ref":
"#/components/schemas/IntentAuthorizationKeyQuorumMember"
},
{
"description": "The team member who provided this authorization
signature."
}
]
},
"status": {
"description": "The current status of the intent.",
"type": "string"
},
"type": {
"description": "The type of webhook event.",
"type": "string",
"enum": [
"intent.authorized"
]
}
},
"x-stainless-model": "webhooks.intent_authorized_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§member: IntentAuthorizationKeyQuorumMember§status: StringThe current status of the intent.
type_: IntentAuthorizedWebhookPayloadTypeThe type of webhook event.
Trait Implementations§
Source§impl Clone for IntentAuthorizedWebhookPayload
impl Clone for IntentAuthorizedWebhookPayload
Source§fn clone(&self) -> IntentAuthorizedWebhookPayload
fn clone(&self) -> IntentAuthorizedWebhookPayload
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<'de> Deserialize<'de> for IntentAuthorizedWebhookPayload
impl<'de> Deserialize<'de> for IntentAuthorizedWebhookPayload
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<&IntentAuthorizedWebhookPayload> for IntentAuthorizedWebhookPayload
impl From<&IntentAuthorizedWebhookPayload> for IntentAuthorizedWebhookPayload
Source§fn from(value: &IntentAuthorizedWebhookPayload) -> Self
fn from(value: &IntentAuthorizedWebhookPayload) -> Self
Converts to this type from the input type.
Source§impl From<IntentAuthorizedWebhookPayload> for WebhookPayload
impl From<IntentAuthorizedWebhookPayload> for WebhookPayload
Source§fn from(value: IntentAuthorizedWebhookPayload) -> Self
fn from(value: IntentAuthorizedWebhookPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IntentAuthorizedWebhookPayload
impl RefUnwindSafe for IntentAuthorizedWebhookPayload
impl Send for IntentAuthorizedWebhookPayload
impl Sync for IntentAuthorizedWebhookPayload
impl Unpin for IntentAuthorizedWebhookPayload
impl UnsafeUnpin for IntentAuthorizedWebhookPayload
impl UnwindSafe for IntentAuthorizedWebhookPayload
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