pub struct EndpointWebhookValidation {
pub enabled: Option<bool>,
pub provider: String,
pub secret: String,
}
Fields§
§enabled: Option<bool>
true
if the module will be applied to traffic, false
to disable. default
true
if unspecified
provider: String
a string indicating which webhook provider will be sending webhooks to this endpoint. Value must be one of the supported providers defined at https://ngrok.com/docs/cloud-edge/modules/webhook-verification
secret: String
a string secret used to validate requests from the given provider. All providers except AWS SNS require a secret
Trait Implementations§
Source§impl Clone for EndpointWebhookValidation
impl Clone for EndpointWebhookValidation
Source§fn clone(&self) -> EndpointWebhookValidation
fn clone(&self) -> EndpointWebhookValidation
Returns a copy 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 EndpointWebhookValidation
impl Debug for EndpointWebhookValidation
Source§impl Default for EndpointWebhookValidation
impl Default for EndpointWebhookValidation
Source§fn default() -> EndpointWebhookValidation
fn default() -> EndpointWebhookValidation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EndpointWebhookValidation
impl<'de> Deserialize<'de> for EndpointWebhookValidation
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 EndpointWebhookValidation
impl RefUnwindSafe for EndpointWebhookValidation
impl Send for EndpointWebhookValidation
impl Sync for EndpointWebhookValidation
impl Unpin for EndpointWebhookValidation
impl UnwindSafe for EndpointWebhookValidation
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