pub struct TasksCapability {
pub requests: Option<TaskRequestsCapability>,
pub list: Option<JsonObject>,
pub cancel: Option<JsonObject>,
}Expand description
Task capabilities shared by client and server.
Fields§
§requests: Option<TaskRequestsCapability>§list: Option<JsonObject>§cancel: Option<JsonObject>Implementations§
Source§impl TasksCapability
impl TasksCapability
Sourcepub fn client_default() -> Self
pub fn client_default() -> Self
Default client tasks capability with sampling and elicitation support.
Sourcepub fn server_default() -> Self
pub fn server_default() -> Self
Default server tasks capability with tools/call support.
pub fn supports_list(&self) -> bool
pub fn supports_cancel(&self) -> bool
pub fn supports_tools_call(&self) -> bool
pub fn supports_sampling_create_message(&self) -> bool
pub fn supports_elicitation_create(&self) -> bool
Trait Implementations§
Source§impl Clone for TasksCapability
impl Clone for TasksCapability
Source§fn clone(&self) -> TasksCapability
fn clone(&self) -> TasksCapability
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 TasksCapability
impl Debug for TasksCapability
Source§impl Default for TasksCapability
impl Default for TasksCapability
Source§fn default() -> TasksCapability
fn default() -> TasksCapability
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TasksCapability
impl<'de> Deserialize<'de> for TasksCapability
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 JsonSchema for TasksCapability
impl JsonSchema for TasksCapability
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 moreSource§impl PartialEq for TasksCapability
impl PartialEq for TasksCapability
Source§impl Serialize for TasksCapability
impl Serialize for TasksCapability
impl StructuralPartialEq for TasksCapability
Auto Trait Implementations§
impl Freeze for TasksCapability
impl RefUnwindSafe for TasksCapability
impl Send for TasksCapability
impl Sync for TasksCapability
impl Unpin for TasksCapability
impl UnsafeUnpin for TasksCapability
impl UnwindSafe for TasksCapability
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