pub struct SmsOutgoingMessage {
pub phone_number: String,
pub content: String,
pub flash: bool,
pub validity_period: Option<u8>,
pub timeout: Option<u32>,
}Expand description
A partial outgoing message.
Fields§
§phone_number: StringTarget phone number.
content: StringMessage text content.
flash: boolShould the message be sent as a Class 0 flash delivery.
validity_period: Option<u8>An optional validity period used by the SMC, default 24hr.
timeout: Option<u32>A timeout to use for sending an SMS message.
Implementations§
Source§impl SmsOutgoingMessage
impl SmsOutgoingMessage
Sourcepub fn get_validity_period(&self) -> u8
pub fn get_validity_period(&self) -> u8
Get the message sending validity period, either as set or default.
Trait Implementations§
Source§impl Debug for SmsOutgoingMessage
impl Debug for SmsOutgoingMessage
Source§impl From<&SmsOutgoingMessage> for SmsMessage
impl From<&SmsOutgoingMessage> for SmsMessage
Source§fn from(outgoing: &SmsOutgoingMessage) -> Self
fn from(outgoing: &SmsOutgoingMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SmsOutgoingMessage
impl RefUnwindSafe for SmsOutgoingMessage
impl Send for SmsOutgoingMessage
impl Sync for SmsOutgoingMessage
impl Unpin for SmsOutgoingMessage
impl UnwindSafe for SmsOutgoingMessage
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