#[non_exhaustive]pub struct ThreadRunListRequest {
pub limit: Option<u8>,
pub order: Option<ThreadRunListOrder>,
pub after: Option<String>,
pub before: Option<String>,
}Expand description
EN: Query parameters for GET /v1/threads/{thread_id}/runs.
中文:GET /v1/threads/{thread_id}/runs 的查询参数。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.limit: Option<u8>EN: Maximum number of runs to retrieve. 中文:要获取的最大 run 数量。
order: Option<ThreadRunListOrder>EN: Sort order by creation timestamp. 中文:按创建时间戳排序的方向。
after: Option<String>EN: Cursor after which the next page starts. 中文:下一页开始位置之前的游标。
before: Option<String>EN: Cursor before which the previous page starts. 中文:上一页开始位置之后的游标。
Implementations§
Source§impl ThreadRunListRequest
impl ThreadRunListRequest
Sourcepub fn builder() -> ThreadRunListRequestBuilder
pub fn builder() -> ThreadRunListRequestBuilder
EN: Starts building thread run list query parameters. 中文:开始构建 thread run 列表查询参数。
Trait Implementations§
Source§impl Clone for ThreadRunListRequest
impl Clone for ThreadRunListRequest
Source§fn clone(&self) -> ThreadRunListRequest
fn clone(&self) -> ThreadRunListRequest
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 ThreadRunListRequest
impl Debug for ThreadRunListRequest
Source§impl Default for ThreadRunListRequest
impl Default for ThreadRunListRequest
Source§fn default() -> ThreadRunListRequest
fn default() -> ThreadRunListRequest
Returns the “default value” for a type. Read more
impl Eq for ThreadRunListRequest
Source§impl PartialEq for ThreadRunListRequest
impl PartialEq for ThreadRunListRequest
Source§fn eq(&self, other: &ThreadRunListRequest) -> bool
fn eq(&self, other: &ThreadRunListRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ThreadRunListRequest
Auto Trait Implementations§
impl Freeze for ThreadRunListRequest
impl RefUnwindSafe for ThreadRunListRequest
impl Send for ThreadRunListRequest
impl Sync for ThreadRunListRequest
impl Unpin for ThreadRunListRequest
impl UnsafeUnpin for ThreadRunListRequest
impl UnwindSafe for ThreadRunListRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.