[][src]Struct net::url::UserInfo

pub struct UserInfo {
    pub name: String,
    pub password: Option<String>,
}

The Userinfo type is an immutable encapsulation of username and password details for a URL. An existing Userinfo value is guaranteed to have a username set (potentially empty, as allowed by RFC 2396), and optionally a password.

Fields

name: Stringpassword: Option<String>

Trait Implementations

impl Clone for UserInfo[src]

impl Debug for UserInfo[src]

impl Default for UserInfo[src]

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

impl Display for UserInfo[src]

impl PartialEq<UserInfo> for UserInfo[src]

impl Serialize for UserInfo[src]

impl StructuralPartialEq for UserInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for UserInfo

impl Send for UserInfo

impl Sync for UserInfo

impl Unpin for UserInfo

impl UnwindSafe for UserInfo

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.