pub struct ListProjectsQueryArgs { /* private fields */ }Available on crate feature
administration-types only.Expand description
Builder for ListProjectsQuery.
Implementations§
Source§impl ListProjectsQueryArgs
impl ListProjectsQueryArgs
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 after<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn after<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A cursor for use in pagination. after is an object ID that defines your place in the
list.
Sourcepub fn include_archived<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn include_archived<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true returns all projects including those that have been archived. Archived projects
are not included by default.
Sourcepub fn build(&self) -> Result<ListProjectsQuery, OpenAIError>
pub fn build(&self) -> Result<ListProjectsQuery, OpenAIError>
Trait Implementations§
Source§impl Clone for ListProjectsQueryArgs
impl Clone for ListProjectsQueryArgs
Source§fn clone(&self) -> ListProjectsQueryArgs
fn clone(&self) -> ListProjectsQueryArgs
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 ListProjectsQueryArgs
impl Debug for ListProjectsQueryArgs
Auto Trait Implementations§
impl Freeze for ListProjectsQueryArgs
impl RefUnwindSafe for ListProjectsQueryArgs
impl Send for ListProjectsQueryArgs
impl Sync for ListProjectsQueryArgs
impl Unpin for ListProjectsQueryArgs
impl UnsafeUnpin for ListProjectsQueryArgs
impl UnwindSafe for ListProjectsQueryArgs
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