pub struct WebhookPlatformConfig {
pub enabled: bool,
pub port: u16,
pub webhook_path: String,
}Expand description
Per-platform webhook server settings. A WebhookPlatformConfig with
enabled = false means the adapter is not started even if its secret is
present in the environment.
Fields§
§enabled: boolWhether to start this adapter at boot.
port: u16TCP port to bind on 0.0.0.0.
webhook_path: StringHTTP path the adapter listens on (e.g. /webhooks/line).
Implementations§
Source§impl WebhookPlatformConfig
impl WebhookPlatformConfig
Sourcepub fn default_webhook() -> Self
pub fn default_webhook() -> Self
Defaults for the generic webhook adapter. Used when no explicit
platforms.webhook block is present so existing setups keep working.
Sourcepub fn default_line() -> Self
pub fn default_line() -> Self
Defaults for LINE. Constructed by the setup wizard when the user opts
in, so enabled = true; for manual yaml authors, enabled itself
defaults to false via serde, keeping the adapter opt-in.
Sourcepub fn default_whatsapp() -> Self
pub fn default_whatsapp() -> Self
Defaults for WhatsApp — same semantics as default_line.
Trait Implementations§
Source§impl Clone for WebhookPlatformConfig
impl Clone for WebhookPlatformConfig
Source§fn clone(&self) -> WebhookPlatformConfig
fn clone(&self) -> WebhookPlatformConfig
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 WebhookPlatformConfig
impl Debug for WebhookPlatformConfig
Source§impl<'de> Deserialize<'de> for WebhookPlatformConfig
impl<'de> Deserialize<'de> for WebhookPlatformConfig
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 WebhookPlatformConfig
impl RefUnwindSafe for WebhookPlatformConfig
impl Send for WebhookPlatformConfig
impl Sync for WebhookPlatformConfig
impl Unpin for WebhookPlatformConfig
impl UnsafeUnpin for WebhookPlatformConfig
impl UnwindSafe for WebhookPlatformConfig
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