pub struct McpProperty {
pub prop_type: String,
pub description: String,
pub enum_values: Vec<String>,
pub default: Option<Value>,
}Expand description
MCP property definition
Fields§
§prop_type: StringProperty type
description: StringDescription
enum_values: Vec<String>Enum values (if applicable)
default: Option<Value>Default value
Trait Implementations§
Source§impl Clone for McpProperty
impl Clone for McpProperty
Source§fn clone(&self) -> McpProperty
fn clone(&self) -> McpProperty
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 McpProperty
impl Debug for McpProperty
Source§impl<'de> Deserialize<'de> for McpProperty
impl<'de> Deserialize<'de> for McpProperty
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
Auto Trait Implementations§
impl Freeze for McpProperty
impl RefUnwindSafe for McpProperty
impl Send for McpProperty
impl Sync for McpProperty
impl Unpin for McpProperty
impl UnsafeUnpin for McpProperty
impl UnwindSafe for McpProperty
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