pub struct ParameterHint {
pub name: String,
pub param_type: String,
pub description: Option<String>,
pub required: bool,
pub default_value: Option<Value>,
pub enum_values: Option<Vec<Value>>,
pub format: Option<String>,
pub pattern: Option<String>,
pub min_length: Option<u64>,
pub max_length: Option<u64>,
}Expand description
Parameter hint information extracted from JSON Schema
Fields§
§name: StringThe parameter name
param_type: StringThe parameter type (string, number, boolean, etc.)
description: Option<String>Optional description of the parameter
required: boolWhether this parameter is required
default_value: Option<Value>Default value for the parameter, if any
enum_values: Option<Vec<Value>>Allowed enum values, if the parameter is an enum
format: Option<String>Format constraint (e.g., “uri”, “email”, “date-time”)
pattern: Option<String>Regex pattern the value must match
min_length: Option<u64>Minimum length for string values
max_length: Option<u64>Maximum length for string values
Trait Implementations§
Source§impl Clone for ParameterHint
impl Clone for ParameterHint
Source§fn clone(&self) -> ParameterHint
fn clone(&self) -> ParameterHint
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParameterHint
impl RefUnwindSafe for ParameterHint
impl Send for ParameterHint
impl Sync for ParameterHint
impl Unpin for ParameterHint
impl UnwindSafe for ParameterHint
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