Trait CreateDefaultCompletionConstraintsForType

Source
pub trait CreateDefaultCompletionConstraintsForType<T>: StructuredTextCompletionModel<Self::DefaultConstraints> {
    type DefaultConstraints: ModelConstraints<Output = T>;

    // Required method
    fn create_default_constraints() -> Self::DefaultConstraints;
}
Expand description

A trait that defines the default constraints for a type with this model.

Required Associated Types§

Source

type DefaultConstraints: ModelConstraints<Output = T>

The default constraints for this type that work with this model.

Required Methods§

Source

fn create_default_constraints() -> Self::DefaultConstraints

Create Self::DefaultConstraints which parse the type T for this model.

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§