pub trait State: Sized {
    type Messages;
    type Temperature;
    type TopP;
    type Store;
    type Metadata;
    type LogitBias;
}
Expand description

Builder’s type state specifies if members are set or not (unset).

You can use the associated types of this trait to control the state of individual members with the IsSet and IsUnset traits. You can change the state of the members with the Set* structs available in this module.

Required Associated Types§

Source

type Messages

Type state of the member messages.

It can implement either IsSet or IsUnset

Source

type Temperature

Type state of the member temperature.

It can implement either IsSet or IsUnset

Source

type TopP

Type state of the member top_p.

It can implement either IsSet or IsUnset

Source

type Store

Type state of the member store.

It can implement either IsSet or IsUnset

Source

type Metadata

Type state of the member metadata.

It can implement either IsSet or IsUnset

Source

type LogitBias

Type state of the member logit_bias.

It can implement either IsSet or IsUnset

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§