pub struct TextRequest {
pub params: TextParams,
pub model: String,
}Expand description
Text request with provider info
Fields§
§params: TextParams§model: StringImplementations§
Source§impl TextRequest
impl TextRequest
Sourcepub fn new(model: impl Into<String>, params: TextParams) -> TextRequest
pub fn new(model: impl Into<String>, params: TextParams) -> TextRequest
Create a new text request
Trait Implementations§
Source§impl Clone for TextRequest
impl Clone for TextRequest
Source§fn clone(&self) -> TextRequest
fn clone(&self) -> TextRequest
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 moreAuto Trait Implementations§
impl Freeze for TextRequest
impl RefUnwindSafe for TextRequest
impl Send for TextRequest
impl Sync for TextRequest
impl Unpin for TextRequest
impl UnwindSafe for TextRequest
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