pub enum ProgressTokenValue {
String(String),
Number(i64),
}Expand description
Core MCP protocol types and error handling Progress token value — can be a string or a number per MCP 2025-11-25. See MCP spec
Variants§
Trait Implementations§
Source§impl Clone for ProgressTokenValue
impl Clone for ProgressTokenValue
Source§fn clone(&self) -> ProgressTokenValue
fn clone(&self) -> ProgressTokenValue
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 ProgressTokenValue
impl Debug for ProgressTokenValue
Source§impl<'de> Deserialize<'de> for ProgressTokenValue
impl<'de> Deserialize<'de> for ProgressTokenValue
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProgressTokenValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProgressTokenValue, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&str> for ProgressTokenValue
impl From<&str> for ProgressTokenValue
Source§fn from(s: &str) -> ProgressTokenValue
fn from(s: &str) -> ProgressTokenValue
Converts to this type from the input type.
Source§impl From<String> for ProgressTokenValue
impl From<String> for ProgressTokenValue
Source§fn from(s: String) -> ProgressTokenValue
fn from(s: String) -> ProgressTokenValue
Converts to this type from the input type.
Source§impl From<i64> for ProgressTokenValue
impl From<i64> for ProgressTokenValue
Source§fn from(n: i64) -> ProgressTokenValue
fn from(n: i64) -> ProgressTokenValue
Converts to this type from the input type.
Source§impl PartialEq for ProgressTokenValue
impl PartialEq for ProgressTokenValue
Source§impl Serialize for ProgressTokenValue
impl Serialize for ProgressTokenValue
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 StructuralPartialEq for ProgressTokenValue
Auto Trait Implementations§
impl Freeze for ProgressTokenValue
impl RefUnwindSafe for ProgressTokenValue
impl Send for ProgressTokenValue
impl Sync for ProgressTokenValue
impl Unpin for ProgressTokenValue
impl UnsafeUnpin for ProgressTokenValue
impl UnwindSafe for ProgressTokenValue
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