pub struct AuthOkMsg {
pub identity: MessageIdentity,
pub scopes: Vec<String>,
pub protocol_version: Option<u32>,
pub capabilities: Option<Vec<String>>,
pub providers: Option<Vec<String>>,
}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.
capabilities: Option<Vec<String>>Capability identifiers the daemon supports (e.g. commands.dynamic,
ui.dialogs). Feature-detect on these instead of version-sniffing.
None on daemons that predate capability negotiation.
providers: Option<Vec<String>>Provider ids registered on this daemon, default first (feeds the
/provider command and the /new --provider flag). None on
daemons that predate multi-provider session creation.
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