Skip to main content

ConstString

Trait ConstString 

Source
pub trait ConstString: Default {
    const VALUE: &'static str;
}

Required Associated Constants§

Source

const VALUE: &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ConstString for CallToolRequestMethod

Source§

const VALUE: &'static str = "tools/call"

Source§

impl ConstString for CancelledNotificationMethod

Source§

const VALUE: &'static str = "notifications/cancelled"

Source§

impl ConstString for CompleteRequestMethod

Source§

const VALUE: &'static str = "completion/complete"

Source§

impl ConstString for CreateMessageRequestMethod

Source§

const VALUE: &'static str = "sampling/createMessage"

Source§

impl ConstString for GetPromptRequestMethod

Source§

const VALUE: &'static str = "prompts/get"

Source§

impl ConstString for InitializeResultMethod

Source§

const VALUE: &'static str = "initialize"

Source§

impl ConstString for InitializedNotificationMethod

Source§

const VALUE: &'static str = "notifications/initialized"

Source§

impl ConstString for JsonRpcVersion2_0

Source§

const VALUE: &'static str = "2.0"

Source§

impl ConstString for ListPromptsRequestMethod

Source§

const VALUE: &'static str = "prompts/list"

Source§

impl ConstString for ListResourceTemplatesRequestMethod

Source§

const VALUE: &'static str = "resources/templates/list"

Source§

impl ConstString for ListResourcesRequestMethod

Source§

const VALUE: &'static str = "resources/list"

Source§

impl ConstString for ListRootsRequestMethod

Source§

const VALUE: &'static str = "roots/list"

Source§

impl ConstString for ListToolsRequestMethod

Source§

const VALUE: &'static str = "tools/list"

Source§

impl ConstString for LoggingMessageNotificationMethod

Source§

const VALUE: &'static str = "notifications/message"

Source§

impl ConstString for PingRequestMethod

Source§

const VALUE: &'static str = "ping"

Source§

impl ConstString for ProgressNotificationMethod

Source§

const VALUE: &'static str = "notifications/progress"

Source§

impl ConstString for PromptListChangedNotificationMethod

Source§

const VALUE: &'static str = "notifications/prompts/list_changed"

Source§

impl ConstString for ReadResourceRequestMethod

Source§

const VALUE: &'static str = "resources/read"

Source§

impl ConstString for ResourceListChangedNotificationMethod

Source§

const VALUE: &'static str = "notifications/resources/list_changed"

Source§

impl ConstString for ResourceUpdatedNotificationMethod

Source§

const VALUE: &'static str = "notifications/resources/updated"

Source§

impl ConstString for RootsListChangedNotificationMethod

Source§

const VALUE: &'static str = "notifications/roots/list_changed"

Source§

impl ConstString for SetLevelRequestMethod

Source§

const VALUE: &'static str = "logging/setLevel"

Source§

impl ConstString for SubscribeRequestMethod

Source§

const VALUE: &'static str = "resources/subscribe"

Source§

impl ConstString for ToolListChangedNotificationMethod

Source§

const VALUE: &'static str = "notifications/tools/list_changed"

Source§

impl ConstString for UnsubscribeRequestMethod

Source§

const VALUE: &'static str = "resources/unsubscribe"