pub struct PromptListChangedNotification {
pub jsonrpc: JsonRpcVersion,
pub method: NotificationsPromptsListChangedMethod,
pub params: Option<NotificationParams>,
}Expand description
An optional notification from the server to the client, informing it that the list of prompts it offers has changed. This is only delivered on a SubscriptionsListenRequestsubscriptions/listen stream when the client requested it via the promptsListChanged filter field.
Fields§
§jsonrpc: JsonRpcVersion§method: NotificationsPromptsListChangedMethod§params: Option<NotificationParams>Trait Implementations§
Source§impl Clone for PromptListChangedNotification
impl Clone for PromptListChangedNotification
Source§fn clone(&self) -> PromptListChangedNotification
fn clone(&self) -> PromptListChangedNotification
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 Default for PromptListChangedNotification
impl Default for PromptListChangedNotification
Source§fn default() -> PromptListChangedNotification
fn default() -> PromptListChangedNotification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromptListChangedNotification
impl<'de> Deserialize<'de> for PromptListChangedNotification
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptListChangedNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptListChangedNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PromptListChangedNotification> for ServerNotification
impl From<PromptListChangedNotification> for ServerNotification
Source§fn from(v: PromptListChangedNotification) -> ServerNotification
fn from(v: PromptListChangedNotification) -> ServerNotification
Converts to this type from the input type.
Source§impl Serialize for PromptListChangedNotification
impl Serialize for PromptListChangedNotification
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PromptListChangedNotification
Auto Trait Implementations§
impl Freeze for PromptListChangedNotification
impl RefUnwindSafe for PromptListChangedNotification
impl Send for PromptListChangedNotification
impl Sync for PromptListChangedNotification
impl Unpin for PromptListChangedNotification
impl UnsafeUnpin for PromptListChangedNotification
impl UnwindSafe for PromptListChangedNotification
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