pub enum CommandResult {
Metadata {
data: ServerMetadata,
},
Tools {
data: Vec<ToolDefinitionMetadata>,
},
ToolInvocation {
data: ToolResponse,
},
Resources {
data: Vec<ResourceDefinitionMetadata>,
},
Resource {
data: ResourceContent,
},
Prompts {
data: Vec<PromptDefinitionMetadata>,
},
PromptInstantiation {
data: Vec<PromptMessage>,
},
Ack {
message: String,
},
}Variants§
Metadata
Fields
§
data: ServerMetadataTools
Fields
§
data: Vec<ToolDefinitionMetadata>ToolInvocation
Fields
§
data: ToolResponseResources
Fields
§
data: Vec<ResourceDefinitionMetadata>Resource
Fields
§
data: ResourceContentPrompts
Fields
§
data: Vec<PromptDefinitionMetadata>PromptInstantiation
Fields
§
data: Vec<PromptMessage>Ack
Implementations§
Source§impl CommandResult
impl CommandResult
pub fn shutdown_ack() -> Self
pub fn event_kind(&self) -> &'static str
Trait Implementations§
Source§impl Clone for CommandResult
impl Clone for CommandResult
Source§fn clone(&self) -> CommandResult
fn clone(&self) -> CommandResult
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 CommandResult
impl Debug for CommandResult
Auto Trait Implementations§
impl Freeze for CommandResult
impl RefUnwindSafe for CommandResult
impl Send for CommandResult
impl Sync for CommandResult
impl Unpin for CommandResult
impl UnsafeUnpin for CommandResult
impl UnwindSafe for CommandResult
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