pub enum ServiceRequest {
ListResources {
cursor: Option<String>,
},
ListResourceTemplates {
cursor: Option<String>,
},
ReadResource {
uri: String,
},
SubscribeResource {
uri: String,
},
UnsubscribeResource {
uri: String,
},
ListPrompts {
cursor: Option<String>,
},
GetPrompt {
name: String,
arguments: Option<HashMap<String, String>>,
},
ListTools {
cursor: Option<String>,
},
CallTool {
name: String,
arguments: Option<Value>,
},
SetLoggingLevel {
level: LoggingLevel,
},
GetCompletions {
reference_type: CompletionReferenceType,
reference_name: String,
argument_name: String,
argument_value: String,
},
ListRoots,
}
Expand description
Service request types
Variants§
ListResources
List resources
ListResourceTemplates
List resource templates
ReadResource
Read a resource
SubscribeResource
Subscribe to a resource
UnsubscribeResource
Unsubscribe from a resource
ListPrompts
List prompts
GetPrompt
Get a prompt
ListTools
List tools
CallTool
Call a tool
SetLoggingLevel
Set logging level
Fields
§
level: LoggingLevel
Logging level
GetCompletions
Get completions
Fields
§
reference_type: CompletionReferenceType
Reference type
ListRoots
List roots
Trait Implementations§
Source§impl Clone for ServiceRequest
impl Clone for ServiceRequest
Source§fn clone(&self) -> ServiceRequest
fn clone(&self) -> ServiceRequest
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ServiceRequest
impl RefUnwindSafe for ServiceRequest
impl Send for ServiceRequest
impl Sync for ServiceRequest
impl Unpin for ServiceRequest
impl UnwindSafe for ServiceRequest
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