Skip to main content

Generable

Trait Generable 

Source
pub trait Generable:
    Sized
    + FromGeneratedContent
    + ToGeneratedContent {
    // Required method
    fn generation_schema() -> Result<GenerationSchema, FMError>;
}
Expand description

Rust analogue of FoundationModels’ Generable protocol.

Required Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl Generable for String

Source§

impl Generable for bool

Source§

impl Generable for f32

Source§

impl Generable for f64

Source§

impl Generable for i8

Source§

impl Generable for i16

Source§

impl Generable for i32

Source§

impl Generable for i64

Source§

impl Generable for u8

Source§

impl Generable for u16

Source§

impl Generable for u32

Source§

impl Generable for u64

Source§

impl<T> Generable for Option<T>
where T: Generable,

Source§

impl<T> Generable for Vec<T>
where T: Generable,

Implementors§