pub struct GetResponseQueryArgs { /* private fields */ }Expand description
Builder for GetResponseQuery.
Implementations§
Source§impl GetResponseQueryArgs
impl GetResponseQueryArgs
Sourcepub fn include<VALUE>(&mut self, value: VALUE) -> &mut GetResponseQueryArgs
pub fn include<VALUE>(&mut self, value: VALUE) -> &mut GetResponseQueryArgs
Additional fields to include in the response.
Sourcepub fn stream<VALUE>(&mut self, value: VALUE) -> &mut GetResponseQueryArgs
pub fn stream<VALUE>(&mut self, value: VALUE) -> &mut GetResponseQueryArgs
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>(
&mut self,
value: VALUE,
) -> &mut GetResponseQueryArgs
pub fn starting_after<VALUE>( &mut self, value: VALUE, ) -> &mut GetResponseQueryArgs
The sequence number of the event after which to start streaming.
Sourcepub fn include_obfuscation<VALUE>(
&mut self,
value: VALUE,
) -> &mut GetResponseQueryArgs
pub fn include_obfuscation<VALUE>( &mut self, value: VALUE, ) -> &mut GetResponseQueryArgs
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 (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 GetResponseQueryArgs
impl Debug for GetResponseQueryArgs
Source§impl Default for GetResponseQueryArgs
impl Default for GetResponseQueryArgs
Source§fn default() -> GetResponseQueryArgs
fn default() -> GetResponseQueryArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetResponseQueryArgs
impl RefUnwindSafe for GetResponseQueryArgs
impl Send for GetResponseQueryArgs
impl Sync for GetResponseQueryArgs
impl Unpin for GetResponseQueryArgs
impl UnsafeUnpin 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