#[non_exhaustive]pub struct ClientMethodNames {
pub session_request_permission: &'static str,
pub session_update: &'static str,
pub mcp_connect: &'static str,
pub mcp_message: &'static str,
pub mcp_disconnect: &'static str,
pub elicitation_create: &'static str,
pub elicitation_complete: &'static str,
}Available on crate feature
unstable_protocol_v2 only.Expand description
Names of all methods that clients handle.
Provides a centralized definition of method names used in the protocol.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_request_permission: &'static strMethod for requesting permission from the user.
session_update: &'static strNotification for session updates.
mcp_connect: &'static strAvailable on crate feature
unstable_mcp_over_acp only.Method for opening an MCP-over-ACP connection.
mcp_message: &'static strAvailable on crate feature
unstable_mcp_over_acp only.Method for exchanging MCP-over-ACP messages.
mcp_disconnect: &'static strAvailable on crate feature
unstable_mcp_over_acp only.Method for closing an MCP-over-ACP connection.
elicitation_create: &'static strAvailable on crate feature
unstable_elicitation only.Method for elicitation.
elicitation_complete: &'static strAvailable on crate feature
unstable_elicitation only.Notification for elicitation completion.
Trait Implementations§
Source§impl Clone for ClientMethodNames
impl Clone for ClientMethodNames
Source§fn clone(&self) -> ClientMethodNames
fn clone(&self) -> ClientMethodNames
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 ClientMethodNames
impl Debug for ClientMethodNames
Source§impl Deserialize<'static> for ClientMethodNames
impl Deserialize<'static> for ClientMethodNames
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientMethodNames, <__D as Deserializer<'static>>::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClientMethodNames, <__D as Deserializer<'static>>::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ClientMethodNames
Source§impl PartialEq for ClientMethodNames
impl PartialEq for ClientMethodNames
Source§fn eq(&self, other: &ClientMethodNames) -> bool
fn eq(&self, other: &ClientMethodNames) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ClientMethodNames
impl Serialize for ClientMethodNames
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ClientMethodNames
Auto Trait Implementations§
impl Freeze for ClientMethodNames
impl RefUnwindSafe for ClientMethodNames
impl Send for ClientMethodNames
impl Sync for ClientMethodNames
impl Unpin for ClientMethodNames
impl UnsafeUnpin for ClientMethodNames
impl UnwindSafe for ClientMethodNames
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