pub struct EmptyResult {
pub meta: Option<HashMap<String, Value>>,
}
Expand description
Empty result for successful operations (per MCP spec)
Fields§
§meta: Option<HashMap<String, Value>>
Meta information (follows MCP Result interface)
Implementations§
Source§impl EmptyResult
impl EmptyResult
pub fn new() -> EmptyResult
pub fn with_meta(self, meta: HashMap<String, Value>) -> EmptyResult
Trait Implementations§
Source§impl Clone for EmptyResult
impl Clone for EmptyResult
Source§fn clone(&self) -> EmptyResult
fn clone(&self) -> EmptyResult
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 EmptyResult
impl Debug for EmptyResult
Source§impl Default for EmptyResult
impl Default for EmptyResult
Source§fn default() -> EmptyResult
fn default() -> EmptyResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EmptyResult
impl<'de> Deserialize<'de> for EmptyResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmptyResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmptyResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HasData for EmptyResult
impl HasData for EmptyResult
Source§impl HasMeta for EmptyResult
impl HasMeta for EmptyResult
Source§impl Serialize for EmptyResult
impl Serialize for EmptyResult
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 RpcResult for EmptyResult
Auto Trait Implementations§
impl Freeze for EmptyResult
impl RefUnwindSafe for EmptyResult
impl Send for EmptyResult
impl Sync for EmptyResult
impl Unpin for EmptyResult
impl UnwindSafe for EmptyResult
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