pub struct ViberConfig {
pub enabled: bool,
pub auth_token: String,
pub webhook_url: Option<String>,
pub webhook_path: String,
pub allowlist: Vec<String>,
pub rate_limit_per_minute: u32,
pub allow_broadcast: bool,
pub welcome_message: Option<String>,
pub enable_keyboards: bool,
}Expand description
Viber Bot API configuration.
Fields§
§enabled: bool§auth_token: StringViber Bot Authentication Token
webhook_url: Option<String>Webhook URL for receiving callbacks (optional)
webhook_path: StringWebhook path for receiving callbacks
allowlist: Vec<String>List of allowed user IDs (empty = all allowed)
rate_limit_per_minute: u32Rate limit for sending messages per minute (default: 300)
allow_broadcast: boolAllow broadcast messages (admin only)
welcome_message: Option<String>Welcome message for new conversations
enable_keyboards: boolEnable keyboard support
Trait Implementations§
Source§impl Clone for ViberConfig
impl Clone for ViberConfig
Source§fn clone(&self) -> ViberConfig
fn clone(&self) -> ViberConfig
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 ViberConfig
impl Debug for ViberConfig
Source§impl<'de> Deserialize<'de> for ViberConfig
impl<'de> Deserialize<'de> for ViberConfig
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 ViberConfig
impl RefUnwindSafe for ViberConfig
impl Send for ViberConfig
impl Sync for ViberConfig
impl Unpin for ViberConfig
impl UnsafeUnpin for ViberConfig
impl UnwindSafe for ViberConfig
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