pub struct ScmWebhookConfig {
pub enabled: bool,
pub path: Option<String>,
pub secret_env_var: Option<String>,
pub signature_header: Option<String>,
pub event_header: Option<String>,
pub delivery_header: Option<String>,
pub max_body_bytes: Option<u64>,
}Expand description
SCM webhook configuration (TS: SCMWebhookConfig).
Default sets enabled = true, matching the serde default and TS
behaviour (enabled: webhook?.enabled !== false). A zero-value
Default would silently disable webhooks for anyone constructing
this struct in Rust, which is the opposite of what the YAML path does.
Fields§
§enabled: bool§path: Option<String>§secret_env_var: Option<String>§signature_header: Option<String>§event_header: Option<String>§delivery_header: Option<String>§max_body_bytes: Option<u64>Trait Implementations§
Source§impl Clone for ScmWebhookConfig
impl Clone for ScmWebhookConfig
Source§fn clone(&self) -> ScmWebhookConfig
fn clone(&self) -> ScmWebhookConfig
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 ScmWebhookConfig
impl Debug for ScmWebhookConfig
Source§impl Default for ScmWebhookConfig
impl Default for ScmWebhookConfig
Source§impl<'de> Deserialize<'de> for ScmWebhookConfig
impl<'de> Deserialize<'de> for ScmWebhookConfig
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 ScmWebhookConfig
impl PartialEq for ScmWebhookConfig
Source§impl Serialize for ScmWebhookConfig
impl Serialize for ScmWebhookConfig
impl Eq for ScmWebhookConfig
impl StructuralPartialEq for ScmWebhookConfig
Auto Trait Implementations§
impl Freeze for ScmWebhookConfig
impl RefUnwindSafe for ScmWebhookConfig
impl Send for ScmWebhookConfig
impl Sync for ScmWebhookConfig
impl Unpin for ScmWebhookConfig
impl UnsafeUnpin for ScmWebhookConfig
impl UnwindSafe for ScmWebhookConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.