pub struct PayloadOptionsNotificationOptionsBuilder { /* private fields */ }
Expand description
Builder for PayloadOptionsNotificationOptions
.
Implementations§
Source§impl PayloadOptionsNotificationOptionsBuilder
impl PayloadOptionsNotificationOptionsBuilder
Sourcepub fn with_send<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn with_send<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
(Default: true) - отправлять/не отправлять пуш нотификацию
Sourcepub fn with_force_dnd<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn with_force_dnd<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
(Default: false) - игнорировать/не игнорировать DND/Mute.
Sourcepub fn build(
&self,
) -> Result<PayloadOptionsNotificationOptions, PayloadOptionsNotificationOptionsBuilderError>
pub fn build( &self, ) -> Result<PayloadOptionsNotificationOptions, PayloadOptionsNotificationOptionsBuilderError>
Builds a new PayloadOptionsNotificationOptions
.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for PayloadOptionsNotificationOptionsBuilder
impl Clone for PayloadOptionsNotificationOptionsBuilder
Source§fn clone(&self) -> PayloadOptionsNotificationOptionsBuilder
fn clone(&self) -> PayloadOptionsNotificationOptionsBuilder
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 PayloadOptionsNotificationOptionsBuilder
impl RefUnwindSafe for PayloadOptionsNotificationOptionsBuilder
impl Send for PayloadOptionsNotificationOptionsBuilder
impl Sync for PayloadOptionsNotificationOptionsBuilder
impl Unpin for PayloadOptionsNotificationOptionsBuilder
impl UnwindSafe for PayloadOptionsNotificationOptionsBuilder
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