pub struct ListChatKitThreadsQueryArgs { /* private fields */ }Available on crate feature
chatkit-types only.Expand description
Builder for ListChatKitThreadsQuery.
Implementations§
Source§impl ListChatKitThreadsQueryArgs
impl ListChatKitThreadsQueryArgs
Sourcepub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn limit<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
Maximum number of thread items to return. Defaults to 20.
Sourcepub fn order<VALUE: Into<ListChatKitThreadsOrder>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn order<VALUE: Into<ListChatKitThreadsOrder>>( &mut self, value: VALUE, ) -> &mut Self
Sort order for results by creation time. Defaults to 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
List items created after this thread item ID. Defaults to null for the first page.
Sourcepub fn before<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn before<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
List items created before this thread item ID. Defaults to null for the newest results.
Sourcepub fn user<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn user<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Filter threads that belong to this user identifier. Defaults to null to return all users.
Sourcepub fn build(&self) -> Result<ListChatKitThreadsQuery, OpenAIError>
pub fn build(&self) -> Result<ListChatKitThreadsQuery, OpenAIError>
Trait Implementations§
Source§impl Clone for ListChatKitThreadsQueryArgs
impl Clone for ListChatKitThreadsQueryArgs
Source§fn clone(&self) -> ListChatKitThreadsQueryArgs
fn clone(&self) -> ListChatKitThreadsQueryArgs
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 ListChatKitThreadsQueryArgs
impl Debug for ListChatKitThreadsQueryArgs
Auto Trait Implementations§
impl Freeze for ListChatKitThreadsQueryArgs
impl RefUnwindSafe for ListChatKitThreadsQueryArgs
impl Send for ListChatKitThreadsQueryArgs
impl Sync for ListChatKitThreadsQueryArgs
impl Unpin for ListChatKitThreadsQueryArgs
impl UnsafeUnpin for ListChatKitThreadsQueryArgs
impl UnwindSafe for ListChatKitThreadsQueryArgs
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