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§
Sourcetype DefaultConstraints: ModelConstraints<Output = T>
type DefaultConstraints: ModelConstraints<Output = T>
The default constraints for this type that work with this model.
Required Methods§
Sourcefn create_default_constraints() -> Self::DefaultConstraints
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.