pub struct WebhookConfig {
pub secret_env: String,
pub algorithm: WebhookAlgorithm,
pub signature_header: Option<String>,
pub max_body_bytes: Option<u64>,
pub publish: Option<String>,
}Expand description
Signed inbound-webhook config for a function (FA-5). The verifying secret is a reference to a host env var (never stored plaintext — mirrors site secrets); the endpoint verifies the request signature over the raw body, constant-time, before the guest runs.
Fields§
§secret_env: StringThe host env var holding the shared secret.
algorithm: WebhookAlgorithmSignature scheme (default HMAC-SHA256).
signature_header: Option<String>The header carrying the hex signature (default x-boatramp-signature; a
leading sha256= is accepted and stripped).
max_body_bytes: Option<u64>Max request body accepted before verifying/dispatching (default 1 MiB).
publish: Option<String>If set, a verified webhook publishes its body onto the project bus at
this topic (a consumer subscribes with bus:<topic>) and returns 202,
without running any component — the “external event → the fabric”
ingress, so a quick webhook needs no dedicated wasi:http function. Unset
⇒ the verified webhook invokes the function as before.
Implementations§
Trait Implementations§
Source§impl Clone for WebhookConfig
impl Clone for WebhookConfig
Source§fn clone(&self) -> WebhookConfig
fn clone(&self) -> WebhookConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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<WebhookConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WebhookConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for WebhookConfig
Source§impl PartialEq for WebhookConfig
impl PartialEq for WebhookConfig
Source§impl Serialize for WebhookConfig
impl Serialize for WebhookConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for WebhookConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.