pub enum ClientResult {
Result(Result),
CreateMessageResult(CreateMessageResult),
ListRootsResult(ListRootsResult),
}
Expand description
Generated from JSON schema definition for ClientResult
Variants§
Result(Result)
CreateMessageResult(CreateMessageResult)
The client’s response to a sampling/create_message request from the server. The client should inform the user before returning the sampled message, to allow them to inspect the response (human in the loop) and decide whether to allow the server to see it.
ListRootsResult(ListRootsResult)
The client’s response to a roots/list request from the server. This result contains an array of Root objects, each representing a root directory or file that the server can operate on.
Trait Implementations§
Source§impl Clone for ClientResult
impl Clone for ClientResult
Source§fn clone(&self) -> ClientResult
fn clone(&self) -> ClientResult
Returns a duplicate of the value. Read more
1.0.0 · 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 ClientResult
impl Debug for ClientResult
Source§impl<'de> Deserialize<'de> for ClientResult
impl<'de> Deserialize<'de> for ClientResult
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 PartialEq for ClientResult
impl PartialEq for ClientResult
Source§impl Serialize for ClientResult
impl Serialize for ClientResult
impl StructuralPartialEq for ClientResult
Auto Trait Implementations§
impl Freeze for ClientResult
impl RefUnwindSafe for ClientResult
impl Send for ClientResult
impl Sync for ClientResult
impl Unpin for ClientResult
impl UnwindSafe for ClientResult
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