Struct botx_api::api::models::payload_options::PayloadOptionsBuilder
source · pub struct PayloadOptionsBuilder { /* private fields */ }Expand description
Builder for PayloadOptions.
Implementations§
source§impl PayloadOptionsBuilder
impl PayloadOptionsBuilder
sourcepub fn with_stealth_mode<VALUE: Into<bool>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn with_stealth_mode<VALUE: Into<bool>>( &mut self, value: VALUE ) -> &mut Self
(Default: false) - если true, то сообщение будет отправлено в чат только в том случае, если в чате включен стелс режим
pub fn with_notification_opts<VALUE: Into<PayloadOptionsNotificationOptions>>( &mut self, value: VALUE ) -> &mut Self
sourcepub fn build(&self) -> Result<PayloadOptions, PayloadOptionsBuilderError>
pub fn build(&self) -> Result<PayloadOptions, PayloadOptionsBuilderError>
Trait Implementations§
source§impl Clone for PayloadOptionsBuilder
impl Clone for PayloadOptionsBuilder
source§fn clone(&self) -> PayloadOptionsBuilder
fn clone(&self) -> PayloadOptionsBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for PayloadOptionsBuilder
impl Send for PayloadOptionsBuilder
impl Sync for PayloadOptionsBuilder
impl Unpin for PayloadOptionsBuilder
impl UnwindSafe for PayloadOptionsBuilder
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