pub struct GetResponseQueryArgs { /* private fields */ }Available on crate feature
response-types only.Expand description
Builder for GetResponseQuery.
Implementations§
Source§impl GetResponseQueryArgs
impl GetResponseQueryArgs
Sourcepub fn include<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn include<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
Additional fields to include in the response.
Sourcepub fn stream<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn stream<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If set to true, the model response data will be streamed to the client as it is generated using server-sent events.
Sourcepub fn starting_after<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn starting_after<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
The sequence number of the event after which to start streaming.
Sourcepub fn include_obfuscation<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn include_obfuscation<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
When true, stream obfuscation will be enabled.
Sourcepub fn build(&self) -> Result<GetResponseQuery, OpenAIError>
pub fn build(&self) -> Result<GetResponseQuery, OpenAIError>
Trait Implementations§
Source§impl Clone for GetResponseQueryArgs
impl Clone for GetResponseQueryArgs
Source§fn clone(&self) -> GetResponseQueryArgs
fn clone(&self) -> GetResponseQueryArgs
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 GetResponseQueryArgs
impl Debug for GetResponseQueryArgs
Auto Trait Implementations§
impl Freeze for GetResponseQueryArgs
impl RefUnwindSafe for GetResponseQueryArgs
impl Send for GetResponseQueryArgs
impl Sync for GetResponseQueryArgs
impl Unpin for GetResponseQueryArgs
impl UnwindSafe for GetResponseQueryArgs
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