Struct openai_api_rs::v1::chat_completion::JSONSchemaDefine
source · pub struct JSONSchemaDefine {
pub schema_type: Option<JSONSchemaType>,
pub description: Option<String>,
pub enum_values: Option<Vec<String>>,
pub properties: Option<HashMap<String, Box<JSONSchemaDefine>>>,
pub required: Option<Vec<String>>,
pub items: Option<Box<JSONSchemaDefine>>,
}
Fields§
§schema_type: Option<JSONSchemaType>
§description: Option<String>
§enum_values: Option<Vec<String>>
§properties: Option<HashMap<String, Box<JSONSchemaDefine>>>
§required: Option<Vec<String>>
§items: Option<Box<JSONSchemaDefine>>
Trait Implementations§
source§impl Debug for JSONSchemaDefine
impl Debug for JSONSchemaDefine
source§impl<'de> Deserialize<'de> for JSONSchemaDefine
impl<'de> Deserialize<'de> for JSONSchemaDefine
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 RefUnwindSafe for JSONSchemaDefine
impl Send for JSONSchemaDefine
impl Sync for JSONSchemaDefine
impl Unpin for JSONSchemaDefine
impl UnwindSafe for JSONSchemaDefine
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