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

URL username as a string slice.

password

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>

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