[][src]Struct libsip::uri::auth::UriAuth

pub struct UriAuth {
    pub username: String,
    pub password: Option<String>,
}

URI Credentials

Fields

username: Stringpassword: Option<String>

Implementations

impl UriAuth[src]

pub fn new<S: Into<String>>(username: S) -> UriAuth[src]

Create new UriAuth from username.

pub fn password<S: Into<String>>(self, p: S) -> UriAuth[src]

Set the uri password.

Trait Implementations

impl Clone for UriAuth[src]

impl Debug for UriAuth[src]

impl<'de> Deserialize<'de> for UriAuth[src]

impl Display for UriAuth[src]

impl PartialEq<UriAuth> for UriAuth[src]

impl Serialize for UriAuth[src]

impl StructuralPartialEq for UriAuth[src]

Auto Trait Implementations

impl RefUnwindSafe for UriAuth

impl Send for UriAuth

impl Sync for UriAuth

impl Unpin for UriAuth

impl UnwindSafe for UriAuth

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,