Enum rants::Authorization [−][src]
pub enum Authorization {
Token {
token: String,
},
UsernamePassword {
username: String,
password: String,
},
}
Expand description
The methods of client authorization set in the Connect
message
Variants
Use the auth_token
authorization method
Fields of Token
token: String
Use the user
and pass
authorization method
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnwindSafe for Authorization
Blanket Implementations
Mutably borrows from an owned value. Read more