pub struct ConnectionExpiredEvent {
pub id: String,
pub timestamp: String,
pub event_type: String,
pub data: SingleConnectedAccountDetailedResponse,
pub metadata: WebhookConnectionMetadata,
}Expand description
Connection expired webhook event payload.
Emitted when a connected account expires due to authentication refresh failure.
§Example
use composio::models::webhook_events::{ConnectionExpiredEvent, is_connection_expired_event};
fn handle_webhook(payload: serde_json::Value) {
if is_connection_expired_event(&payload) {
if let Ok(event) = serde_json::from_value::<ConnectionExpiredEvent>(payload) {
println!("Connection {} expired", event.data.id);
println!("Toolkit: {}", event.data.toolkit.slug);
println!("User: {}", event.data.user_id);
}
}
}Fields§
§id: StringUnique message ID (e.g., “msg_847cdfcd-d219-4f18-a6dd-91acd42ca94a”)
timestamp: StringISO-8601 timestamp
event_type: StringEvent type (always “composio.connected_account.expired”)
data: SingleConnectedAccountDetailedResponseConnected account details
metadata: WebhookConnectionMetadataEvent metadata
Trait Implementations§
Source§impl Clone for ConnectionExpiredEvent
impl Clone for ConnectionExpiredEvent
Source§fn clone(&self) -> ConnectionExpiredEvent
fn clone(&self) -> ConnectionExpiredEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 ConnectionExpiredEvent
impl Debug for ConnectionExpiredEvent
Source§impl<'de> Deserialize<'de> for ConnectionExpiredEvent
impl<'de> Deserialize<'de> for ConnectionExpiredEvent
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 ConnectionExpiredEvent
impl RefUnwindSafe for ConnectionExpiredEvent
impl Send for ConnectionExpiredEvent
impl Sync for ConnectionExpiredEvent
impl Unpin for ConnectionExpiredEvent
impl UnsafeUnpin for ConnectionExpiredEvent
impl UnwindSafe for ConnectionExpiredEvent
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