pub struct TwilioConfig {
pub enabled: bool,
pub account_sid: String,
pub auth_token: String,
pub phone_number: String,
pub webhook_url: Option<String>,
pub allowlist: Vec<String>,
pub max_message_length: usize,
pub enable_mms: bool,
pub rate_limit_per_second: u32,
}Expand description
Twilio SMS/MMS configuration.
Fields§
§enabled: bool§account_sid: StringTwilio Account SID
auth_token: StringTwilio Auth Token
phone_number: StringTwilio phone number (E.164 format, e.g., +1234567890)
webhook_url: Option<String>Optional webhook URL for receiving messages
allowlist: Vec<String>List of allowed phone numbers (empty = all allowed)
max_message_length: usizeMaximum message length (default 1600, Twilio’s limit)
enable_mms: boolEnable MMS support
rate_limit_per_second: u32Rate limit for sending messages per second
Trait Implementations§
Source§impl Clone for TwilioConfig
impl Clone for TwilioConfig
Source§fn clone(&self) -> TwilioConfig
fn clone(&self) -> TwilioConfig
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 TwilioConfig
impl Debug for TwilioConfig
Source§impl<'de> Deserialize<'de> for TwilioConfig
impl<'de> Deserialize<'de> for TwilioConfig
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 TwilioConfig
impl RefUnwindSafe for TwilioConfig
impl Send for TwilioConfig
impl Sync for TwilioConfig
impl Unpin for TwilioConfig
impl UnsafeUnpin for TwilioConfig
impl UnwindSafe for TwilioConfig
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