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

URL username as a string slice.

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]

Formats the value using the given formatter.