kind_openai

Trait SubordinateOpenAISchema

Source
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. (enums and eventually structs 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§

Source

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.

Implementors§