pub struct ListInputItemsQueryArgs { /* private fields */ }Available on crate feature
response-types only.Expand description
Builder for ListInputItemsQuery.
Implementations§
Source§impl ListInputItemsQueryArgs
impl ListInputItemsQueryArgs
Sourcepub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
Sourcepub fn order<VALUE: Into<ListInputItemsOrder>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn order<VALUE: Into<ListInputItemsOrder>>( &mut self, value: VALUE, ) -> &mut Self
The order to return the input items in. Default is desc.
Sourcepub fn after<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn after<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
An item ID to list items after, used in pagination.
Sourcepub fn include<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn include<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
Additional fields to include in the response.
Sourcepub fn build(&self) -> Result<ListInputItemsQuery, OpenAIError>
pub fn build(&self) -> Result<ListInputItemsQuery, OpenAIError>
Trait Implementations§
Source§impl Clone for ListInputItemsQueryArgs
impl Clone for ListInputItemsQueryArgs
Source§fn clone(&self) -> ListInputItemsQueryArgs
fn clone(&self) -> ListInputItemsQueryArgs
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 ListInputItemsQueryArgs
impl Debug for ListInputItemsQueryArgs
Auto Trait Implementations§
impl Freeze for ListInputItemsQueryArgs
impl RefUnwindSafe for ListInputItemsQueryArgs
impl Send for ListInputItemsQueryArgs
impl Sync for ListInputItemsQueryArgs
impl Unpin for ListInputItemsQueryArgs
impl UnsafeUnpin for ListInputItemsQueryArgs
impl UnwindSafe for ListInputItemsQueryArgs
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