pub struct ElicitRequestedSchema {
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 ElicitRequestedSchema
impl Clone for ElicitRequestedSchema
Source§fn clone(&self) -> ElicitRequestedSchema
fn clone(&self) -> ElicitRequestedSchema
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 ElicitRequestedSchema
impl Debug for ElicitRequestedSchema
Source§impl<'de> Deserialize<'de> for ElicitRequestedSchema
impl<'de> Deserialize<'de> for ElicitRequestedSchema
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 ElicitRequestedSchema
impl RefUnwindSafe for ElicitRequestedSchema
impl Send for ElicitRequestedSchema
impl Sync for ElicitRequestedSchema
impl Unpin for ElicitRequestedSchema
impl UnwindSafe for ElicitRequestedSchema
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