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