pub struct AuthOkMsg {
pub identity: MessageIdentity,
pub scopes: Vec<String>,
pub protocol_version: Option<u32>,
}Expand description
Sent after a successful auth handshake, before any other traffic.
Fields§
§identity: MessageIdentity§scopes: Vec<String>§protocol_version: Option<u32>Wire-protocol version the daemon speaks. Compare against
crate::PROTOCOL_VERSION. None means a pre-v1 daemon that didn’t
send the field — treat as version 0.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthOkMsg
impl<'de> Deserialize<'de> for AuthOkMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthOkMsg
impl RefUnwindSafe for AuthOkMsg
impl Send for AuthOkMsg
impl Sync for AuthOkMsg
impl Unpin for AuthOkMsg
impl UnsafeUnpin for AuthOkMsg
impl UnwindSafe for AuthOkMsg
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