pub struct HandshakeSession {
pub user: String,
pub session_id: u32,
pub pc_id: String,
}Expand description
Session info derived from the OS at connect time, surfaced back
to the client so the UI can label “logged in as
DOMAIN\\alice” without a second round-trip.
Fields§
§user: StringDOMAIN\\username (Windows) or username (Linux/macOS).
Derived from the OS token, not the payload.
session_id: u32Console / RDP session id (Windows). On Linux/macOS this is the UID (which serves the same “which interactive shell is the caller in” role).
pc_id: StringThe PC’s pc_id (matches the agent’s pc_id everywhere
else — Heartbeat, ExecResult, audit log, …). Carried in
the handshake so the client’s UI doesn’t need a separate
“which PC am I?” call.
Trait Implementations§
Source§impl Clone for HandshakeSession
impl Clone for HandshakeSession
Source§fn clone(&self) -> HandshakeSession
fn clone(&self) -> HandshakeSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HandshakeSession
impl Debug for HandshakeSession
Source§impl<'de> Deserialize<'de> for HandshakeSession
impl<'de> Deserialize<'de> for HandshakeSession
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
Source§impl JsonSchema for HandshakeSession
impl JsonSchema for HandshakeSession
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for HandshakeSession
impl RefUnwindSafe for HandshakeSession
impl Send for HandshakeSession
impl Sync for HandshakeSession
impl Unpin for HandshakeSession
impl UnsafeUnpin for HandshakeSession
impl UnwindSafe for HandshakeSession
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