pub struct Request {
pub limit: Option<u8>,
pub offset: Option<u64>,
pub sort: Option<SortOrder<UserSortKey>>,
pub state: Option<UserState>,
pub origin: Option<UserOrigin>,
}Fields§
§limit: Option<u8>1 .. 100
offset: Option<u64>§sort: Option<SortOrder<UserSortKey>>§state: Option<UserState>§origin: Option<UserOrigin>Implementations§
Source§impl Request
impl Request
Sourcepub fn builder() -> RequestBuilder<((), (), (), (), ())>
pub fn builder() -> RequestBuilder<((), (), (), (), ())>
Create a builder for building Request.
On the builder, call .limit(...)(optional), .offset(...)(optional), .sort(...)(optional), .state(...)(optional), .origin(...)(optional) to set the values of the fields (they accept Into values).
Finally, call .build() to create the instance of Request.
Trait Implementations§
Source§impl OffsetPaginationRequest for Request
impl OffsetPaginationRequest for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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