pub struct WebhookRoute {
pub path: String,
pub methods: Vec<HttpMethod>,
pub auth: Option<AuthConfig>,
pub error_behavior: Option<ErrorBehavior>,
pub mappings: Vec<WebhookMapping>,
}Expand description
Configuration for a single webhook route
Fields§
§path: StringRoute path pattern (supports :param for path parameters)
Example: “/github/events” or “/users/:user_id/webhooks”
methods: Vec<HttpMethod>Allowed HTTP methods for this route
auth: Option<AuthConfig>Authentication configuration
error_behavior: Option<ErrorBehavior>Error behavior override for this route
mappings: Vec<WebhookMapping>Mappings from payload to source change events
Implementations§
Trait Implementations§
Source§impl Clone for WebhookRoute
impl Clone for WebhookRoute
Source§fn clone(&self) -> WebhookRoute
fn clone(&self) -> WebhookRoute
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 WebhookRoute
impl Debug for WebhookRoute
Source§impl<'de> Deserialize<'de> for WebhookRoute
impl<'de> Deserialize<'de> for WebhookRoute
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 PartialEq for WebhookRoute
impl PartialEq for WebhookRoute
Source§impl Serialize for WebhookRoute
impl Serialize for WebhookRoute
impl StructuralPartialEq for WebhookRoute
Auto Trait Implementations§
impl Freeze for WebhookRoute
impl RefUnwindSafe for WebhookRoute
impl Send for WebhookRoute
impl Sync for WebhookRoute
impl Unpin for WebhookRoute
impl UnsafeUnpin for WebhookRoute
impl UnwindSafe for WebhookRoute
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