pub struct GetChatCompletionMessagesQuery {
pub after: Option<String>,
pub limit: Option<u32>,
pub order: Option<GetChatCompletionMessagesOrder>,
}Available on crate feature
chat-completion-types only.Expand description
Query parameters for getting chat completion messages.
Fields§
§after: Option<String>Identifier for the last message from the previous pagination request.
limit: Option<u32>Number of messages to retrieve.
order: Option<GetChatCompletionMessagesOrder>Sort order for messages by timestamp. Use asc for ascending order or desc for descending order. Defaults to asc.
Trait Implementations§
Source§impl Clone for GetChatCompletionMessagesQuery
impl Clone for GetChatCompletionMessagesQuery
Source§fn clone(&self) -> GetChatCompletionMessagesQuery
fn clone(&self) -> GetChatCompletionMessagesQuery
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 Default for GetChatCompletionMessagesQuery
impl Default for GetChatCompletionMessagesQuery
Source§fn default() -> GetChatCompletionMessagesQuery
fn default() -> GetChatCompletionMessagesQuery
Returns the “default value” for a type. Read more
Source§impl PartialEq for GetChatCompletionMessagesQuery
impl PartialEq for GetChatCompletionMessagesQuery
Source§fn eq(&self, other: &GetChatCompletionMessagesQuery) -> bool
fn eq(&self, other: &GetChatCompletionMessagesQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GetChatCompletionMessagesQuery
Auto Trait Implementations§
impl Freeze for GetChatCompletionMessagesQuery
impl RefUnwindSafe for GetChatCompletionMessagesQuery
impl Send for GetChatCompletionMessagesQuery
impl Sync for GetChatCompletionMessagesQuery
impl Unpin for GetChatCompletionMessagesQuery
impl UnwindSafe for GetChatCompletionMessagesQuery
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