pub struct SipAuthentication {
pub realm: Option<String>,
pub username: String,
pub password: String,
}
Fields§
§realm: Option<String>
This will be expected in the realm
field of the authorization
header of the SIP INVITE. Defaults to sip.vapi.ai.
username: String
This will be expected in the username
field of the authorization
header of the SIP INVITE.
password: String
This will be expected to generate the response
field of the authorization
header of the SIP INVITE, through digest authentication.
Implementations§
Source§impl SipAuthentication
impl SipAuthentication
pub fn new(username: String, password: String) -> SipAuthentication
Trait Implementations§
Source§impl Clone for SipAuthentication
impl Clone for SipAuthentication
Source§fn clone(&self) -> SipAuthentication
fn clone(&self) -> SipAuthentication
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SipAuthentication
impl Debug for SipAuthentication
Source§impl Default for SipAuthentication
impl Default for SipAuthentication
Source§fn default() -> SipAuthentication
fn default() -> SipAuthentication
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SipAuthentication
impl<'de> Deserialize<'de> for SipAuthentication
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
Source§impl PartialEq for SipAuthentication
impl PartialEq for SipAuthentication
Source§impl Serialize for SipAuthentication
impl Serialize for SipAuthentication
impl StructuralPartialEq for SipAuthentication
Auto Trait Implementations§
impl Freeze for SipAuthentication
impl RefUnwindSafe for SipAuthentication
impl Send for SipAuthentication
impl Sync for SipAuthentication
impl Unpin for SipAuthentication
impl UnwindSafe for SipAuthentication
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