#[non_exhaustive]pub enum ClientResult {
CreateMessageResult(Box<CreateMessageResult>),
ListRootsResult(ListRootsResult),
ElicitResult(ElicitResult),
EmptyResult(EmptyResult),
CustomResult(CustomResult),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CreateMessageResult(Box<CreateMessageResult>)
ListRootsResult(ListRootsResult)
ElicitResult(ElicitResult)
EmptyResult(EmptyResult)
CustomResult(CustomResult)
Implementations§
Source§impl ClientResult
impl ClientResult
pub fn empty(_: ()) -> ClientResult
Trait Implementations§
Source§impl Clone for ClientResult
impl Clone for ClientResult
Source§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 From<CreateMessageResult> for ClientResult
impl From<CreateMessageResult> for ClientResult
Source§fn from(value: CreateMessageResult) -> Self
fn from(value: CreateMessageResult) -> Self
Converts to this type from the input type.
Source§impl From<CustomResult> for ClientResult
impl From<CustomResult> for ClientResult
Source§fn from(value: CustomResult) -> Self
fn from(value: CustomResult) -> Self
Converts to this type from the input type.
Source§impl From<ElicitResult> for ClientResult
impl From<ElicitResult> for ClientResult
Source§fn from(value: ElicitResult) -> Self
fn from(value: ElicitResult) -> Self
Converts to this type from the input type.
Source§impl From<EmptyObject> for ClientResult
impl From<EmptyObject> for ClientResult
Source§fn from(value: EmptyResult) -> Self
fn from(value: EmptyResult) -> Self
Converts to this type from the input type.
Source§impl From<ListRootsResult> for ClientResult
impl From<ListRootsResult> for ClientResult
Source§fn from(value: ListRootsResult) -> Self
fn from(value: ListRootsResult) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ClientResult
Available on crate feature schemars only.
impl JsonSchema for ClientResult
Available on crate feature
schemars only.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 ClientResult
impl RefUnwindSafe for ClientResult
impl Send for ClientResult
impl Sync for ClientResult
impl Unpin for ClientResult
impl UnsafeUnpin 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