pub enum ResourceContent {
Json(Value),
}Expand description
Body returned by ResourceRegistry::read.
v0.1-07 ships only Self::Json (JSON payloads from
deribit-http). The variant set is closed; new transports add
new variants.
Variants§
Json(Value)
JSON body produced by an upstream HTTP read. The MIME type
surfaced to MCP is application/json.
Trait Implementations§
Source§impl Clone for ResourceContent
impl Clone for ResourceContent
Source§fn clone(&self) -> ResourceContent
fn clone(&self) -> ResourceContent
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 ResourceContent
impl Debug for ResourceContent
Source§impl PartialEq for ResourceContent
impl PartialEq for ResourceContent
Source§fn eq(&self, other: &ResourceContent) -> bool
fn eq(&self, other: &ResourceContent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResourceContent
Auto Trait Implementations§
impl Freeze for ResourceContent
impl RefUnwindSafe for ResourceContent
impl Send for ResourceContent
impl Sync for ResourceContent
impl Unpin for ResourceContent
impl UnsafeUnpin for ResourceContent
impl UnwindSafe for ResourceContent
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