pub struct ResponseInputItems { /* private fields */ }Expand description
GET /responses/{response_id}/input_items — cursor-paginated list of the
items that produced a response.
Implementations§
Source§impl ResponseInputItems
impl ResponseInputItems
Sourcepub async fn list(
&self,
params: Option<InputItemsListParams>,
) -> Result<List<ResponseItem>, OpenAIError>
pub async fn list( &self, params: Option<InputItemsListParams>, ) -> Result<List<ResponseItem>, OpenAIError>
Fetch a single page.
Sourcepub async fn list_all(
&self,
params: Option<InputItemsListParams>,
) -> Result<Vec<ResponseItem>, OpenAIError>
pub async fn list_all( &self, params: Option<InputItemsListParams>, ) -> Result<Vec<ResponseItem>, OpenAIError>
Fetch every item, following pagination cursors.
Trait Implementations§
Source§impl Clone for ResponseInputItems
impl Clone for ResponseInputItems
Source§fn clone(&self) -> ResponseInputItems
fn clone(&self) -> ResponseInputItems
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ResponseInputItems
impl !UnwindSafe for ResponseInputItems
impl Freeze for ResponseInputItems
impl Send for ResponseInputItems
impl Sync for ResponseInputItems
impl Unpin for ResponseInputItems
impl UnsafeUnpin for ResponseInputItems
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