pub struct ListResourceTemplatesParams {
pub meta: Option<RequestMeta>,
pub pagination: PaginationParams,
}Expand description
Sent from the client to request a list of resource templates the server has.
TS Ref: ListResourceTemplatesRequest
Fields§
§meta: Option<RequestMeta>§pagination: PaginationParamsCursor for pagination
Implementations§
Source§impl ListResourceTemplatesParams
Builders
impl ListResourceTemplatesParams
Builders
pub fn with_meta(self, meta: RequestMeta) -> Self
pub fn with_pagination(self, pagination: PaginationParams) -> Self
pub fn with_cursor(self, cursor: impl Into<Cursor>) -> Self
Trait Implementations§
Source§impl Clone for ListResourceTemplatesParams
impl Clone for ListResourceTemplatesParams
Source§fn clone(&self) -> ListResourceTemplatesParams
fn clone(&self) -> ListResourceTemplatesParams
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 Debug for ListResourceTemplatesParams
impl Debug for ListResourceTemplatesParams
Source§impl Default for ListResourceTemplatesParams
impl Default for ListResourceTemplatesParams
Source§fn default() -> ListResourceTemplatesParams
fn default() -> ListResourceTemplatesParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListResourceTemplatesParams
impl<'de> Deserialize<'de> for ListResourceTemplatesParams
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 IntoMcpRequest<ListResourceTemplatesParams> for ListResourceTemplatesParams
impl IntoMcpRequest<ListResourceTemplatesParams> for ListResourceTemplatesParams
const METHOD: &'static str = "resources/templates/list"
type McpResult = ListResourceTemplatesResult
fn into_mcp_request(self) -> McpRequest<P>
Auto Trait Implementations§
impl Freeze for ListResourceTemplatesParams
impl RefUnwindSafe for ListResourceTemplatesParams
impl Send for ListResourceTemplatesParams
impl Sync for ListResourceTemplatesParams
impl Unpin for ListResourceTemplatesParams
impl UnsafeUnpin for ListResourceTemplatesParams
impl UnwindSafe for ListResourceTemplatesParams
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