[src]

Struct url::UserInfo

pub struct UserInfo {
    user: ~str,
    pass: Option<~str>,
}

An optional subcomponent of a URI authority component.

Fields

user

The user name.

pass

Password or other scheme-specific authentication information.

Methods

impl UserInfo

fn new(user: ~str, pass: Option<~str>) -> UserInfo

Trait Implementations

impl Show for UserInfo

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl TotalEq for UserInfo

fn assert_receiver_is_total_eq(&self)

impl Eq for UserInfo

fn eq(&self, __arg_0: &UserInfo) -> bool

fn ne(&self, __arg_0: &UserInfo) -> bool

impl Clone for UserInfo

fn clone(&self) -> UserInfo