pub struct ListChatKitThreadItemsQueryArgs { /* private fields */ }Available on crate feature
chatkit-types only.Expand description
Builder for ListChatKitThreadItemsQuery.
Implementations§
Source§impl ListChatKitThreadItemsQueryArgs
impl ListChatKitThreadItemsQueryArgs
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<ListChatKitThreadItemsOrder>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn order<VALUE: Into<ListChatKitThreadItemsOrder>>( &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 build(&self) -> Result<ListChatKitThreadItemsQuery, OpenAIError>
pub fn build(&self) -> Result<ListChatKitThreadItemsQuery, OpenAIError>
Trait Implementations§
Source§impl Clone for ListChatKitThreadItemsQueryArgs
impl Clone for ListChatKitThreadItemsQueryArgs
Source§fn clone(&self) -> ListChatKitThreadItemsQueryArgs
fn clone(&self) -> ListChatKitThreadItemsQueryArgs
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 Freeze for ListChatKitThreadItemsQueryArgs
impl RefUnwindSafe for ListChatKitThreadItemsQueryArgs
impl Send for ListChatKitThreadItemsQueryArgs
impl Sync for ListChatKitThreadItemsQueryArgs
impl Unpin for ListChatKitThreadItemsQueryArgs
impl UnsafeUnpin for ListChatKitThreadItemsQueryArgs
impl UnwindSafe for ListChatKitThreadItemsQueryArgs
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