pub trait ToGeneratedContent {
// Required method
fn to_generated_content(&self) -> Result<GeneratedContent, FMError>;
}Expand description
Rust analogue of FoundationModels’ ConvertibleToGeneratedContent.
Required Methods§
Sourcefn to_generated_content(&self) -> Result<GeneratedContent, FMError>
fn to_generated_content(&self) -> Result<GeneratedContent, FMError>
Convert a Rust value into generated content.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".