pub struct ListPromptsParams {
pub cursor: Option<Cursor>,
pub meta: Option<HashMap<String, Value>>,
}
Expand description
Parameters for prompts/list request
Fields§
§cursor: Option<Cursor>
Optional cursor for pagination
meta: Option<HashMap<String, Value>>
Meta information (optional _meta field inside params)
Implementations§
Source§impl ListPromptsParams
impl ListPromptsParams
pub fn new() -> ListPromptsParams
pub fn with_cursor(self, cursor: Cursor) -> ListPromptsParams
pub fn with_meta(self, meta: HashMap<String, Value>) -> ListPromptsParams
Trait Implementations§
Source§impl Clone for ListPromptsParams
impl Clone for ListPromptsParams
Source§fn clone(&self) -> ListPromptsParams
fn clone(&self) -> ListPromptsParams
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 ListPromptsParams
impl Debug for ListPromptsParams
Source§impl Default for ListPromptsParams
impl Default for ListPromptsParams
Source§fn default() -> ListPromptsParams
fn default() -> ListPromptsParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListPromptsParams
impl<'de> Deserialize<'de> for ListPromptsParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListPromptsParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListPromptsParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HasMetaParam for ListPromptsParams
impl HasMetaParam for ListPromptsParams
Source§impl SerdeParamExtractor<ListPromptsParams> for ListPromptsParams
impl SerdeParamExtractor<ListPromptsParams> for ListPromptsParams
type Error = McpError
Source§fn extract_serde(
params: RequestParams,
) -> Result<ListPromptsParams, <ListPromptsParams as SerdeParamExtractor<ListPromptsParams>>::Error>
fn extract_serde( params: RequestParams, ) -> Result<ListPromptsParams, <ListPromptsParams as SerdeParamExtractor<ListPromptsParams>>::Error>
Extract parameters using serde deserialization
Source§impl Serialize for ListPromptsParams
impl Serialize for ListPromptsParams
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 Params for ListPromptsParams
Auto Trait Implementations§
impl Freeze for ListPromptsParams
impl RefUnwindSafe for ListPromptsParams
impl Send for ListPromptsParams
impl Sync for ListPromptsParams
impl Unpin for ListPromptsParams
impl UnwindSafe for ListPromptsParams
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