pub enum Authorization {
Token {
token: String,
},
UsernamePassword {
username: String,
password: String,
},
}
Expand description
The methods of client authorization set in the Connect
message
Variants§
Token
Use the auth_token
authorization method
UsernamePassword
Use the user
and pass
authorization method
Implementations§
Source§impl Authorization
impl Authorization
Trait Implementations§
Source§impl Clone for Authorization
impl Clone for Authorization
Source§fn clone(&self) -> Authorization
fn clone(&self) -> Authorization
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Authorization
impl Debug for Authorization
Source§impl Display for Authorization
impl Display for Authorization
Source§impl FromStr for Authorization
impl FromStr for Authorization
Source§impl PartialEq for Authorization
impl PartialEq for Authorization
Source§impl Serialize for Authorization
impl Serialize for Authorization
impl StructuralPartialEq for Authorization
Auto Trait Implementations§
impl Freeze for Authorization
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnwindSafe for Authorization
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more