pub struct SendOptions {
pub skip_phone_validation: Option<bool>,
pub device_active_within: Option<u32>,
}Expand description
Options for sending a message.
Fields§
§skip_phone_validation: Option<bool>Skip phone number validation on the server.
device_active_within: Option<u32>Only send to devices active within this many hours.
Implementations§
Source§impl SendOptions
impl SendOptions
pub fn new() -> Self
pub fn with_skip_phone_validation(self, val: bool) -> Self
pub fn with_device_active_within(self, hours: u32) -> Self
Trait Implementations§
Source§impl Clone for SendOptions
impl Clone for SendOptions
Source§fn clone(&self) -> SendOptions
fn clone(&self) -> SendOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SendOptions
impl Debug for SendOptions
Source§impl Default for SendOptions
impl Default for SendOptions
Source§fn default() -> SendOptions
fn default() -> SendOptions
Returns the “default value” for a type. Read more
Source§impl ToQueryParams for SendOptions
impl ToQueryParams for SendOptions
Source§fn to_query_params(&self) -> Vec<(String, String)>
fn to_query_params(&self) -> Vec<(String, String)>
Returns a list of key-value pairs for the URL query string.
Source§fn to_url_query(&self) -> String
fn to_url_query(&self) -> String
Returns a URL-encoded query string.
Auto Trait Implementations§
impl Freeze for SendOptions
impl RefUnwindSafe for SendOptions
impl Send for SendOptions
impl Sync for SendOptions
impl Unpin for SendOptions
impl UnsafeUnpin for SendOptions
impl UnwindSafe for SendOptions
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