pub struct MessageListParams {
pub before: Option<String>,
pub order: Option<Order>,
pub run_id: Option<String>,
}
Fields§
§before: Option<String>
A cursor for use in pagination. before
is an object ID that defines your place
in the list. For instance, if you make a list request and receive 100 objects,
ending with obj_foo, your subsequent call can include before=obj_foo in order to
fetch the previous page of the list.
order: Option<Order>
Sort order by the created_at
timestamp of the objects. asc
for ascending
order and desc
for descending order.
run_id: Option<String>
Filter messages by the run ID that generated them.
Trait Implementations§
Source§impl Clone for MessageListParams
impl Clone for MessageListParams
Source§fn clone(&self) -> MessageListParams
fn clone(&self) -> MessageListParams
Returns a copy 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 MessageListParams
impl Debug for MessageListParams
Source§impl Default for MessageListParams
impl Default for MessageListParams
Source§fn default() -> MessageListParams
fn default() -> MessageListParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageListParams
impl<'de> Deserialize<'de> for MessageListParams
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
Auto Trait Implementations§
impl Freeze for MessageListParams
impl RefUnwindSafe for MessageListParams
impl Send for MessageListParams
impl Sync for MessageListParams
impl Unpin for MessageListParams
impl UnwindSafe for MessageListParams
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