pub struct Webhooks {
pub listen: Option<String>,
pub tls: A2aTls,
pub default_auth: Option<WebhookAuth>,
}Expand description
The webhook inbound HTTP surface: a dedicated listener serving the
webhook start nodes and wait: {on: webhook} callbacks. Auth is per
node — each webhook declares its own verification — so one permissive
route cannot weaken the others; the listener-wide default set here applies
only to nodes that declare no auth of their own.
Fields§
§listen: Option<String>https://host:port (loopback http:// for dev). Required when any
webhook start node or wait: {on: webhook} is used.
tls: A2aTls§default_auth: Option<WebhookAuth>A default auth applied to webhook nodes that declare none.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Webhooks
impl<'de> Deserialize<'de> for Webhooks
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
impl StructuralPartialEq for Webhooks
Auto Trait Implementations§
impl Freeze for Webhooks
impl RefUnwindSafe for Webhooks
impl Send for Webhooks
impl Sync for Webhooks
impl Unpin for Webhooks
impl UnsafeUnpin for Webhooks
impl UnwindSafe for Webhooks
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