pub struct NotificationsBuilder { /* private fields */ }
Expand description
Builder for Notifications
.
Implementations§
Source§impl NotificationsBuilder
impl NotificationsBuilder
Sourcepub fn orderby<VALUE: Into<NotificationsSorting>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn orderby<VALUE: Into<NotificationsSorting>>( &mut self, value: VALUE, ) -> &mut Self
Sorting options for results (default: Sorted by date).
Sourcepub fn direction<VALUE: Into<Direction>>(&mut self, value: VALUE) -> &mut Self
pub fn direction<VALUE: Into<Direction>>(&mut self, value: VALUE) -> &mut Self
Sort direction. (default: descending)
Sourcepub fn build(&self) -> Result<Notifications, NotificationsBuilderError>
pub fn build(&self) -> Result<Notifications, NotificationsBuilderError>
Trait Implementations§
Source§impl Clone for NotificationsBuilder
impl Clone for NotificationsBuilder
Source§fn clone(&self) -> NotificationsBuilder
fn clone(&self) -> NotificationsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for NotificationsBuilder
impl RefUnwindSafe for NotificationsBuilder
impl Send for NotificationsBuilder
impl Sync for NotificationsBuilder
impl Unpin for NotificationsBuilder
impl UnwindSafe for NotificationsBuilder
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