pub struct MetaConfig {Show 13 fields
pub enabled: bool,
pub app_id: String,
pub app_secret: String,
pub page_access_token: String,
pub verify_token: String,
pub webhook_path: String,
pub page_id: String,
pub instagram_account_id: Option<String>,
pub allowlist: Vec<String>,
pub respond_to_messenger: bool,
pub respond_to_instagram: bool,
pub show_typing_indicator: bool,
pub rate_limit_per_second: u32,
}Expand description
Meta (Messenger & Instagram) configuration.
Fields§
§enabled: bool§app_id: StringMeta App ID
app_secret: StringMeta App Secret
page_access_token: StringPage Access Token for Messenger
verify_token: StringWebhook verify token
webhook_path: StringWebhook path for receiving messages
page_id: StringFacebook Page ID
instagram_account_id: Option<String>Instagram Account ID (optional, for Instagram Direct)
allowlist: Vec<String>List of allowed sender IDs (empty = all allowed)
respond_to_messenger: boolRespond to Messenger messages
respond_to_instagram: boolRespond to Instagram Direct messages
show_typing_indicator: boolShow typing indicator while processing
rate_limit_per_second: u32Rate limit for sending messages per second
Trait Implementations§
Source§impl Clone for MetaConfig
impl Clone for MetaConfig
Source§fn clone(&self) -> MetaConfig
fn clone(&self) -> MetaConfig
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 MetaConfig
impl Debug for MetaConfig
Source§impl<'de> Deserialize<'de> for MetaConfig
impl<'de> Deserialize<'de> for MetaConfig
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 MetaConfig
impl RefUnwindSafe for MetaConfig
impl Send for MetaConfig
impl Sync for MetaConfig
impl Unpin for MetaConfig
impl UnsafeUnpin for MetaConfig
impl UnwindSafe for MetaConfig
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