pub struct WebhookConfig {
pub created_at: DateTime<Utc>,
pub events: Option<Vec<String>>,
pub secret: Option<String>,
pub updated_at: DateTime<Utc>,
pub url: String,
}Expand description
WebhookConfig
Fields§
§created_at: DateTime<Utc>When the webhook was first configured
events: Option<Vec<String>>Event types subscribed to. Null means all events.
secret: Option<String>Signing secret for HMAC verification.
IMPORTANT: This field is:
- Returned once at creation time (PUT /agents/me/webhooks on new config)
- Always
nullfor subsequent reads (GET /agents/me/webhooks) - Always
nullfor updates (PUT /agents/me/webhooks on existing config)
Store the secret securely on first creation. You cannot retrieve it again.
updated_at: DateTime<Utc>When the webhook was last updated
url: StringHTTPS URL the platform will POST events to
Trait Implementations§
Source§impl Clone for WebhookConfig
impl Clone for WebhookConfig
Source§fn clone(&self) -> WebhookConfig
fn clone(&self) -> WebhookConfig
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 WebhookConfig
impl Debug for WebhookConfig
Source§impl<'de> Deserialize<'de> for WebhookConfig
impl<'de> Deserialize<'de> for WebhookConfig
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 WebhookConfig
impl RefUnwindSafe for WebhookConfig
impl Send for WebhookConfig
impl Sync for WebhookConfig
impl Unpin for WebhookConfig
impl UnsafeUnpin for WebhookConfig
impl UnwindSafe for WebhookConfig
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