pub struct GetChatCompletionMessagesParams {
pub completion_id: String,
pub after: Option<String>,
pub limit: Option<i64>,
pub order: Option<GetChatCompletionMessagesParamsOrder>,
}
Fields§
§completion_id: String
The ID of the chat completion to retrieve messages from.
after: Option<String>
Identifier for the last message from the previous pagination request.
limit: Option<i64>
Number of messages to retrieve.
order: Option<GetChatCompletionMessagesParamsOrder>
Sort order for messages by timestamp. Use asc
for ascending order or desc
for descending order. Defaults to asc
.
Implementations§
Source§impl GetChatCompletionMessagesParams
impl GetChatCompletionMessagesParams
Sourcepub fn builder() -> GetChatCompletionMessagesParamsBuilder<((), (), (), ())>
pub fn builder() -> GetChatCompletionMessagesParamsBuilder<((), (), (), ())>
Create a builder for building GetChatCompletionMessagesParams
.
On the builder, call .completion_id(...)
, .after(...)
(optional), .limit(...)
(optional), .order(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of GetChatCompletionMessagesParams
.
Trait Implementations§
Source§impl Clone for GetChatCompletionMessagesParams
impl Clone for GetChatCompletionMessagesParams
Source§fn clone(&self) -> GetChatCompletionMessagesParams
fn clone(&self) -> GetChatCompletionMessagesParams
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for GetChatCompletionMessagesParams
impl<'de> Deserialize<'de> for GetChatCompletionMessagesParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GetChatCompletionMessagesParams
impl PartialEq for GetChatCompletionMessagesParams
Source§fn eq(&self, other: &GetChatCompletionMessagesParams) -> bool
fn eq(&self, other: &GetChatCompletionMessagesParams) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GetChatCompletionMessagesParams
Auto Trait Implementations§
impl Freeze for GetChatCompletionMessagesParams
impl RefUnwindSafe for GetChatCompletionMessagesParams
impl Send for GetChatCompletionMessagesParams
impl Sync for GetChatCompletionMessagesParams
impl Unpin for GetChatCompletionMessagesParams
impl UnwindSafe for GetChatCompletionMessagesParams
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