pub trait Generable:
Sized
+ FromGeneratedContent
+ ToGeneratedContent {
// Required method
fn generation_schema() -> Result<GenerationSchema, FMError>;
}Expand description
Rust analogue of FoundationModels’ Generable protocol.
Required Methods§
Sourcefn generation_schema() -> Result<GenerationSchema, FMError>
fn generation_schema() -> Result<GenerationSchema, FMError>
Return the generation schema that describes Self.
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.