pub struct InitializeParams {
pub protocol_version: ProtocolVersion,
}
Expand description
Initialize sets up the agent’s state. It should be called before any other method, and no other methods should be called until it has completed.
If the agent is not authenticated, then the client should prompt the user to authenticate,
and then call the authenticate
method.
Otherwise the client can send other messages to the agent.
Fields§
§protocol_version: ProtocolVersion
The version of the protocol that the client supports. This should be the latest version supported by the client.
Trait Implementations§
Source§impl AgentRequest for InitializeParams
impl AgentRequest for InitializeParams
type Response = InitializeResponse
fn into_any(self) -> AnyAgentRequest
fn response_from_any(any: AnyAgentResult) -> Result<Self::Response, Error>
Source§impl Debug for InitializeParams
impl Debug for InitializeParams
Source§impl<'de> Deserialize<'de> for InitializeParams
impl<'de> Deserialize<'de> for InitializeParams
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 InitializeParams
impl JsonSchema for InitializeParams
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 InitializeParams
impl RefUnwindSafe for InitializeParams
impl Send for InitializeParams
impl Sync for InitializeParams
impl Unpin for InitializeParams
impl UnwindSafe for InitializeParams
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