pub struct TwilioConfig {
pub account_sid: String,
pub auth_token: String,
}
Expand description
Account SID & auth token pair required for authenticating requests to Twilio.
Fields§
§account_sid: String
Twilio account SID, begins with AC…
auth_token: String
Twilio account auth token
Implementations§
Source§impl TwilioConfig
impl TwilioConfig
pub fn build(account_sid: String, auth_token: String) -> TwilioConfig
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 Default for TwilioConfig
impl Default for TwilioConfig
Source§fn default() -> TwilioConfig
fn default() -> TwilioConfig
Returns the “default value” for a type. Read more
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 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