pub struct HandshakeParams {
pub client: String,
pub client_version: String,
pub protocol: Vec<u32>,
pub features: Vec<String>,
}Expand description
system.handshake request params.
Fields§
§client: StringClient identifier (e.g. "kanade-client"). Free-form, used
for the audit log + tracing spans. Agent does not gate on
this — alternate clients (test harnesses, ops CLI) are fine.
client_version: StringClient binary version (semver). Surfaced into the audit log.
protocol: Vec<u32>All protocol versions the client can speak. The agent picks
the highest mutually-supported version into
HandshakeResult::protocol. Length must be ≥ 1 — an empty
array returns InvalidParams.
features: Vec<String>Optional features the client wants to use. Agent answers
with its own HandshakeResult::features set; the
intersection is what’s actually live for this connection.
Defaults to [] for clients that need only the core methods.
Trait Implementations§
Source§impl Clone for HandshakeParams
impl Clone for HandshakeParams
Source§fn clone(&self) -> HandshakeParams
fn clone(&self) -> HandshakeParams
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 HandshakeParams
impl Debug for HandshakeParams
Source§impl<'de> Deserialize<'de> for HandshakeParams
impl<'de> Deserialize<'de> for HandshakeParams
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 HandshakeParams
impl JsonSchema for HandshakeParams
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 HandshakeParams
impl RefUnwindSafe for HandshakeParams
impl Send for HandshakeParams
impl Sync for HandshakeParams
impl Unpin for HandshakeParams
impl UnsafeUnpin for HandshakeParams
impl UnwindSafe for HandshakeParams
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