pub struct ElicitRequestParamsRequestedSchema {
pub properties: HashMap<String, PrimitiveSchemaDefinition>,
pub required: Vec<String>,
/* private fields */
}
Expand description
A restricted subset of JSON Schema. Only top-level properties are allowed, without nesting.
JSON schema
{
"description": "A restricted subset of JSON Schema.\nOnly top-level properties are allowed, without nesting.",
"type": "object",
"required": [
"properties",
"type"
],
"properties": {
"properties": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/PrimitiveSchemaDefinition"
}
},
"required": {
"type": "array",
"items": {
"type": "string"
}
},
"type": {
"type": "string",
"const": "object"
}
}
}
Fields§
§properties: HashMap<String, PrimitiveSchemaDefinition>
§required: Vec<String>
Implementations§
Trait Implementations§
Source§impl Clone for ElicitRequestParamsRequestedSchema
impl Clone for ElicitRequestParamsRequestedSchema
Source§fn clone(&self) -> ElicitRequestParamsRequestedSchema
fn clone(&self) -> ElicitRequestParamsRequestedSchema
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 moreSource§impl<'de> Deserialize<'de> for ElicitRequestParamsRequestedSchema
impl<'de> Deserialize<'de> for ElicitRequestParamsRequestedSchema
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 ElicitRequestParamsRequestedSchema
impl RefUnwindSafe for ElicitRequestParamsRequestedSchema
impl Send for ElicitRequestParamsRequestedSchema
impl Sync for ElicitRequestParamsRequestedSchema
impl Unpin for ElicitRequestParamsRequestedSchema
impl UnwindSafe for ElicitRequestParamsRequestedSchema
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