Struct rustun::rfc5389::attributes::Username [] [src]

pub struct Username { /* fields omitted */ }

USERNAME attribute.

See RFC 5389 -- 15.3. USERNAME about this attribute.

TODO

  • Support SASLprep [RFC 4013]

Methods

impl Username
[src]

Makes a new Username instance.

The length of name must be less then 513 bytes. If it is too long, this will return None.

Returns the name of this instance.

Trait Implementations

impl Debug for Username
[src]

Formats the value using the given formatter.

impl Clone for Username
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Username
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Username
[src]

impl Hash for Username
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Attribute for Username
[src]

Returns the attribute type of this instance.

Tries to convert from RawAttribute. Read more

Tries to encode the value of this attribute to bytes.

Tries to convert to RawAttribute. Read more