Struct url::format::UserInfoFormatter [] [src]

pub struct UserInfoFormatter<'a> {
    pub username: &'a str,
    pub password: Option<&'a str>,
}

Formatter and serializer for URL username and password data.

Fields

username: &'a str

URL username as a string slice.

password: Option<&'a str>

URL password as an optional string slice.

You can convert an Option<String> with .as_ref().map(|s| s).

Trait Implementations

impl<'a> Display for UserInfoFormatter<'a>
[src]

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

Formats the value using the given formatter.