pub struct ClassifyRequest<'input> {
pub model: Option<EmbedModel>,
pub preset: Option<String>,
pub inputs: &'input [String],
pub examples: &'input [ClassifyExample<'input>],
pub truncate: Option<Truncate>,
}
Fields§
§model: Option<EmbedModel>
An optional string representing the model you’d like to use.
preset: Option<String>
An optional string representing the ID of a custom playground preset.
inputs: &'input [String]
An array of strings that you would like to classify.
examples: &'input [ClassifyExample<'input>]
An array of ClassifyExamples representing examples and the corresponding label.
truncate: Option<Truncate>
Specify how the API will handle inputs longer than the maximum token length.
Trait Implementations§
Source§impl<'input> Debug for ClassifyRequest<'input>
impl<'input> Debug for ClassifyRequest<'input>
Source§impl<'input> Default for ClassifyRequest<'input>
impl<'input> Default for ClassifyRequest<'input>
Source§fn default() -> ClassifyRequest<'input>
fn default() -> ClassifyRequest<'input>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'input> Freeze for ClassifyRequest<'input>
impl<'input> RefUnwindSafe for ClassifyRequest<'input>
impl<'input> Send for ClassifyRequest<'input>
impl<'input> Sync for ClassifyRequest<'input>
impl<'input> Unpin for ClassifyRequest<'input>
impl<'input> UnwindSafe for ClassifyRequest<'input>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more