pub struct WebhookConfigFile {
pub allowlist: BTreeSet<String>,
pub secrets: BTreeMap<String, SigningKey>,
}Expand description
The delivery policy the binary reads from its configuration file. The
allowlist names the HTTPS hostnames the worker may deliver to; a secret
reference maps to an already-loaded signing key. Empty is the fail-closed
default: no allowed host and no key means the worker refuses everything.
Fields§
§allowlist: BTreeSet<String>§secrets: BTreeMap<String, SigningKey>Trait Implementations§
Source§impl Clone for WebhookConfigFile
impl Clone for WebhookConfigFile
Source§fn clone(&self) -> WebhookConfigFile
fn clone(&self) -> WebhookConfigFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebhookConfigFile
impl Debug for WebhookConfigFile
Source§impl Default for WebhookConfigFile
impl Default for WebhookConfigFile
Source§fn default() -> WebhookConfigFile
fn default() -> WebhookConfigFile
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebhookConfigFile
impl RefUnwindSafe for WebhookConfigFile
impl Send for WebhookConfigFile
impl Sync for WebhookConfigFile
impl Unpin for WebhookConfigFile
impl UnsafeUnpin for WebhookConfigFile
impl UnwindSafe for WebhookConfigFile
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