Skip to main content

MessageFactory

Trait MessageFactory 

Source
pub trait MessageFactory: Sized {
    // Required method
    fn from_text(content: String, role: &str) -> Result<Self, TypeError>;
}

Required Methods§

Source

fn from_text(content: String, role: &str) -> Result<Self, TypeError>

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§