pub struct PredictionConfig {
pub text: String,
pub logprobs: Option<Vec<f32>>,
}
Fields§
§text: String
The predicted output text that you expect the model to generate.
logprobs: Option<Vec<f32>>
Optional list of predicted logprobs for each token.
Trait Implementations§
Source§impl Clone for PredictionConfig
impl Clone for PredictionConfig
Source§fn clone(&self) -> PredictionConfig
fn clone(&self) -> PredictionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PredictionConfig
impl Debug for PredictionConfig
Source§impl Default for PredictionConfig
impl Default for PredictionConfig
Source§fn default() -> PredictionConfig
fn default() -> PredictionConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PredictionConfig
impl<'de> Deserialize<'de> for PredictionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PredictionConfig
impl PartialEq for PredictionConfig
Source§impl Serialize for PredictionConfig
impl Serialize for PredictionConfig
impl StructuralPartialEq for PredictionConfig
Auto Trait Implementations§
impl Freeze for PredictionConfig
impl RefUnwindSafe for PredictionConfig
impl Send for PredictionConfig
impl Sync for PredictionConfig
impl Unpin for PredictionConfig
impl UnwindSafe for PredictionConfig
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