pub enum JsonValueVariant2 {
Boolean(bool),
String(String),
Integer(i64),
}Expand description
Latest MCP Protocol 2026_07_28 JsonValueVariant2
JSON schema
{
"type": [
"string",
"integer",
"boolean"
]
}Variants§
Trait Implementations§
Source§impl Clone for JsonValueVariant2
impl Clone for JsonValueVariant2
Source§fn clone(&self) -> JsonValueVariant2
fn clone(&self) -> JsonValueVariant2
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 JsonValueVariant2
impl Debug for JsonValueVariant2
Source§impl<'de> Deserialize<'de> for JsonValueVariant2
impl<'de> Deserialize<'de> for JsonValueVariant2
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 From<JsonValueVariant2> for JsonValue
impl From<JsonValueVariant2> for JsonValue
Source§fn from(value: JsonValueVariant2) -> Self
fn from(value: JsonValueVariant2) -> Self
Converts to this type from the input type.
Source§impl From<bool> for JsonValueVariant2
impl From<bool> for JsonValueVariant2
Source§impl From<i64> for JsonValueVariant2
impl From<i64> for JsonValueVariant2
Auto Trait Implementations§
impl Freeze for JsonValueVariant2
impl RefUnwindSafe for JsonValueVariant2
impl Send for JsonValueVariant2
impl Sync for JsonValueVariant2
impl Unpin for JsonValueVariant2
impl UnsafeUnpin for JsonValueVariant2
impl UnwindSafe for JsonValueVariant2
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