pub struct ListQuery {
pub limit: Option<u32>,
pub order: Option<String>,
pub after: Option<String>,
pub before: Option<String>,
}Expand description
Represents common query parameters for list endpoints supporting pagination and ordering.
Fields correspond to standard parameters like limit, order, after, and before.
Use the Former derive to construct instances easily.
§Used By (as query parameter)
/assistants(GET)/threads/{thread_id}/messages(GET)/threads/{thread_id}/runs(GET)/threads/{thread_id}/runs/{run_id}/steps(GET)/vector_stores(GET)/vector_stores/{vector_store_id}/files(GET)/vector_stores/{vector_store_id}/file_batches/{batch_id}/files(GET)/files(GET)/batches(GET)/chat/completions(GET)/fine_tuning/jobs(GET)/fine_tuning/jobs/{fine_tuning_job_id}/events(GET)/fine_tuning/jobs/{fine_tuning_job_id}/checkpoints(GET)/fine_tuning/checkpoints/{permission_id}/permissions(GET)/organization/admin_api_keys(GET)/organization/audit_logs(GET)/organization/invites(GET)/organization/projects(GET)/organization/projects/{project_id}/api_keys(GET)/organization/projects/{project_id}/rate_limits(GET)/organization/projects/{project_id}/service_accounts(GET)/organization/projects/{project_id}/users(GET)/organization/users(GET)/responses/{response_id}/input_items(GET) // Added this endpoint
Fields§
§limit: Option<u32>A limit on the number of objects to be returned. Limit can range between 1 and 100, with a default depending on the endpoint (often 20).
order: Option<String>Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. Default varies by endpoint (often desc).
after: Option<String>A cursor for use in pagination. after 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 after=obj_foo in order to fetch the next page of the list.
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, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
Implementations§
Trait Implementations§
Source§impl<__Context, __Formed, __End> EntityToDefinition<__Context, __Formed, __End> for ListQuerywhere
__End: FormingEnd<ListQueryFormerDefinitionTypes<__Context, __Formed>>,
impl<__Context, __Formed, __End> EntityToDefinition<__Context, __Formed, __End> for ListQuerywhere
__End: FormingEnd<ListQueryFormerDefinitionTypes<__Context, __Formed>>,
Source§type Definition = ListQueryFormerDefinition<__Context, __Formed, __End>
type Definition = ListQueryFormerDefinition<__Context, __Formed, __End>
FormerDefinition associated with this entity. Read moreSource§type Types = ListQueryFormerDefinitionTypes<__Context, __Formed>
type Types = ListQueryFormerDefinitionTypes<__Context, __Formed>
FormerDefinitionTypes associated with this entity. Read moreSource§impl<__Context, __Formed> EntityToDefinitionTypes<__Context, __Formed> for ListQuery
impl<__Context, __Formed> EntityToDefinitionTypes<__Context, __Formed> for ListQuery
Source§impl<Definition> EntityToFormer<Definition> for ListQuerywhere
Definition: FormerDefinition<Storage = ListQueryFormerStorage>,
impl<Definition> EntityToFormer<Definition> for ListQuerywhere
Definition: FormerDefinition<Storage = ListQueryFormerStorage>,
Source§impl EntityToStorage for ListQuery
impl EntityToStorage for ListQuery
impl StructuralPartialEq for ListQuery
Auto Trait Implementations§
impl Freeze for ListQuery
impl RefUnwindSafe for ListQuery
impl Send for ListQuery
impl Sync for ListQuery
impl Unpin for ListQuery
impl UnwindSafe for ListQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
impl<C, E> EntryToVal<C> for Ewhere
C: Collection<Entry = E>,
Source§type Val = <C as Collection>::Val
type Val = <C as Collection>::Val
Entry in complex collections.
For example, in a HashMap, while Entry might be a ( key, value ) tuple, Val might only be the value part.Source§fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
fn entry_to_val(self) -> <E as EntryToVal<C>>::Val
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
impl<C, Val> ValToEntry<C> for Valwhere
C: CollectionValToEntry<Val>,
Source§fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
fn val_to_entry(self) -> <C as CollectionValToEntry<Val>>::Entry
Invokes the val_to_entry function of the CollectionValToEntry trait to convert the value to an entry.
Source§type Entry = <C as CollectionValToEntry<Val>>::Entry
type Entry = <C as CollectionValToEntry<Val>>::Entry
Entry is defined by the Collection trait.