pub struct PropertyInfo {
pub name: String,
pub typescript_type: String,
pub description: Option<String>,
pub required: bool,
}Expand description
Information about a single parameter property.
Used in Handlebars templates to render parameter type definitions.
§Examples
use mcp_execution_codegen::progressive::PropertyInfo;
let prop = PropertyInfo {
name: "title".to_string(),
typescript_type: "string".to_string(),
description: Some("Issue title".to_string()),
required: true,
};
assert_eq!(prop.name, "title");
assert!(prop.required);Fields§
§name: StringProperty name
typescript_type: StringTypeScript type (e.g., “string”, “number”, “boolean”)
description: Option<String>Optional description from schema
required: boolWhether the property is required
Trait Implementations§
Source§impl Clone for PropertyInfo
impl Clone for PropertyInfo
Source§fn clone(&self) -> PropertyInfo
fn clone(&self) -> PropertyInfo
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 PropertyInfo
impl Debug for PropertyInfo
Source§impl<'de> Deserialize<'de> for PropertyInfo
impl<'de> Deserialize<'de> for PropertyInfo
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 PropertyInfo
impl RefUnwindSafe for PropertyInfo
impl Send for PropertyInfo
impl Sync for PropertyInfo
impl Unpin for PropertyInfo
impl UnwindSafe for PropertyInfo
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