pub trait SubordinateOpenAISchema {
// Required method
fn subordinate_openai_schema() -> &'static str;
}
Expand description
A subordinate type that can be used as a field in an OpenAI schema but not as the schema itself.
(enum
s and eventually struct
s when supported using $ref
). This is still derived by OpenAISchema
,
so for all intents and purposes you can pretend that this type doesn’t exist.
Required Methods§
Sourcefn subordinate_openai_schema() -> &'static str
fn subordinate_openai_schema() -> &'static str
Partial schema that will be filled in in the top level schema.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.