pub struct GetChatCompletionMessagesQueryArgs { /* private fields */ }Available on crate feature
chat-completion-types only.Expand description
Builder for GetChatCompletionMessagesQuery.
Implementations§
Source§impl GetChatCompletionMessagesQueryArgs
impl GetChatCompletionMessagesQueryArgs
Sourcepub fn after<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn after<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Identifier for the last message from the previous pagination request.
Sourcepub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Number of messages to retrieve.
Sourcepub fn order<VALUE: Into<GetChatCompletionMessagesOrder>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn order<VALUE: Into<GetChatCompletionMessagesOrder>>( &mut self, value: VALUE, ) -> &mut Self
Sort order for messages by timestamp. Use asc for ascending order or desc for descending order. Defaults to asc.
Sourcepub fn build(&self) -> Result<GetChatCompletionMessagesQuery, OpenAIError>
pub fn build(&self) -> Result<GetChatCompletionMessagesQuery, OpenAIError>
Trait Implementations§
Source§impl Clone for GetChatCompletionMessagesQueryArgs
impl Clone for GetChatCompletionMessagesQueryArgs
Source§fn clone(&self) -> GetChatCompletionMessagesQueryArgs
fn clone(&self) -> GetChatCompletionMessagesQueryArgs
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 GetChatCompletionMessagesQueryArgs
impl RefUnwindSafe for GetChatCompletionMessagesQueryArgs
impl Send for GetChatCompletionMessagesQueryArgs
impl Sync for GetChatCompletionMessagesQueryArgs
impl Unpin for GetChatCompletionMessagesQueryArgs
impl UnwindSafe for GetChatCompletionMessagesQueryArgs
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