pub struct InitializeResponse {
pub protocol_version: AcpProtocolVersion,
pub agent_capabilities: AgentCapabilities,
pub auth_methods: Option<Vec<AuthMethod>>,
pub agent_info: Option<Implementation>,
}Expand description
The initialize response body. Sent by the agent in
reply to InitializeRequest.
Fields§
§protocol_version: AcpProtocolVersionThe protocol version the agent is speaking. The negotiation rule is “the lower of the two”; the agent’s value is the one the editor takes.
agent_capabilities: AgentCapabilitiesThe agent’s capabilities. Same defaulting
behaviour as the request’s clientCapabilities.
auth_methods: Option<Vec<AuthMethod>>The auth methods the agent supports. Optional
in the schema; absent means “no auth, anonymous
connection”. Present only when the client
advertised auth.terminal = true.
agent_info: Option<Implementation>Information about the agent (name, version). Optional; well-behaved agents always send it.
Trait Implementations§
Source§impl Clone for InitializeResponse
impl Clone for InitializeResponse
Source§impl Debug for InitializeResponse
impl Debug for InitializeResponse
Source§impl<'de> Deserialize<'de> for InitializeResponse
impl<'de> Deserialize<'de> for InitializeResponse
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
impl Eq for InitializeResponse
Source§impl PartialEq for InitializeResponse
impl PartialEq for InitializeResponse
Source§impl Serialize for InitializeResponse
impl Serialize for InitializeResponse
impl StructuralPartialEq for InitializeResponse
Auto Trait Implementations§
impl Freeze for InitializeResponse
impl RefUnwindSafe for InitializeResponse
impl Send for InitializeResponse
impl Sync for InitializeResponse
impl Unpin for InitializeResponse
impl UnsafeUnpin for InitializeResponse
impl UnwindSafe for InitializeResponse
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