pub struct PreviewRequest {
pub model: String,
pub messages: Vec<Message>,
pub max_tokens: Option<u32>,
pub tools: Option<Value>,
pub stream: Option<bool>,
}Fields§
§model: String§messages: Vec<Message>§max_tokens: Option<u32>§tools: Option<Value>§stream: Option<bool>Honored for tier accounting but ignored for the preview calc itself.
Trait Implementations§
Source§impl Clone for PreviewRequest
impl Clone for PreviewRequest
Source§fn clone(&self) -> PreviewRequest
fn clone(&self) -> PreviewRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PreviewRequest
impl Debug for PreviewRequest
Source§impl<'de> Deserialize<'de> for PreviewRequest
impl<'de> Deserialize<'de> for PreviewRequest
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
Auto Trait Implementations§
impl Freeze for PreviewRequest
impl RefUnwindSafe for PreviewRequest
impl Send for PreviewRequest
impl Sync for PreviewRequest
impl Unpin for PreviewRequest
impl UnsafeUnpin for PreviewRequest
impl UnwindSafe for PreviewRequest
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