pub struct ListOptions<List = TimeNotSpecified> { /* private fields */ }Expand description
Query parameters for retrieving a list of things.
Note that ListOptions::default() applies no filters.
See https://resend.com/docs/pagination for more information.
§Example
let list_opts = ListOptions::default()
.with_limit(3)
.list_before("71f170f3-826e-47e3-9128-a5958e3b375e");Implementations§
Source§impl<T> ListOptions<T>
impl<T> ListOptions<T>
Sourcepub const fn with_limit(self, limit: u8) -> Self
pub const fn with_limit(self, limit: u8) -> Self
Number of things to retrieve. If no limit is provided then the default limit will be used which varies from endpoint to endpoint, consult the specific method’s documentation.
- min: 1
- max: 100
Source§impl ListOptions<TimeNotSpecified>
impl ListOptions<TimeNotSpecified>
Sourcepub fn list_before(self, id: &str) -> ListOptions<ListBefore>
pub fn list_before(self, id: &str) -> ListOptions<ListBefore>
The id before which we’ll retrieve the items. This id will not be included in the list.
Sourcepub fn list_after(self, id: &str) -> ListOptions<ListAfter>
pub fn list_after(self, id: &str) -> ListOptions<ListAfter>
The id after which we’ll retrieve the items. This id will not be included in the list.
Trait Implementations§
Source§impl<List: Clone> Clone for ListOptions<List>
impl<List: Clone> Clone for ListOptions<List>
Source§fn clone(&self) -> ListOptions<List>
fn clone(&self) -> ListOptions<List>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<List: Debug> Debug for ListOptions<List>
impl<List: Debug> Debug for ListOptions<List>
Source§impl Default for ListOptions
impl Default for ListOptions
Auto Trait Implementations§
impl<List> Freeze for ListOptions<List>
impl<List> RefUnwindSafe for ListOptions<List>where
List: RefUnwindSafe,
impl<List> Send for ListOptions<List>where
List: Send,
impl<List> Sync for ListOptions<List>where
List: Sync,
impl<List> Unpin for ListOptions<List>where
List: Unpin,
impl<List> UnwindSafe for ListOptions<List>where
List: UnwindSafe,
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