Struct SmsProperties
#[non_exhaustive]pub struct SmsProperties {
pub number: Option<String>,
pub text: Option<String>,
pub data: Option<Vec<u8>>,
pub smsc: Option<String>,
pub validity: Option<(SmsValidityType, OwnedValue)>,
pub class: Option<i32>,
pub delivery_report_request: Option<bool>,
pub teleservice_id: Option<SmsCdmaTeleserviceId>,
pub service_category: Option<SmsCdmaServiceCategory>,
}Expand description
The properties of a new SMS message for Messaging.Create.
number and either text or data are required. The service uses
defaults for the rest.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.number: Option<String>The number to send the message to.
text: Option<String>The text of the message.
data: Option<Vec<u8>>The binary data of the message.
smsc: Option<String>The SMS service center number. The service uses its default if this is empty.
validity: Option<(SmsValidityType, OwnedValue)>How long the SMSC keeps the message. The value depends on the type.
class: Option<i32>The 3GPP message class, from 0 to 3.
delivery_report_request: Option<bool>Whether to ask for a delivery report.
teleservice_id: Option<SmsCdmaTeleserviceId>The CDMA teleservice.
service_category: Option<SmsCdmaServiceCategory>The CDMA service category.
Trait Implementations§
§impl Clone for SmsProperties
impl Clone for SmsProperties
§fn clone(&self) -> SmsProperties
fn clone(&self) -> SmsProperties
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 more§impl Debug for SmsProperties
impl Debug for SmsProperties
§impl Default for SmsProperties
impl Default for SmsProperties
§fn default() -> SmsProperties
fn default() -> SmsProperties
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for SmsProperties
impl<'de> Deserialize<'de> for SmsProperties
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<SmsProperties> for Value<'static>
impl From<SmsProperties> for Value<'static>
§fn from(s: SmsProperties) -> Self
fn from(s: SmsProperties) -> Self
Converts to this type from the input type.
§impl PartialEq for SmsProperties
impl PartialEq for SmsProperties
§impl Serialize for SmsProperties
impl Serialize for SmsProperties
impl StructuralPartialEq for SmsProperties
§impl TryFrom<OwnedValue> for SmsProperties
impl TryFrom<OwnedValue> for SmsProperties
§impl TryFrom<SmsProperties> for OwnedValue
impl TryFrom<SmsProperties> for OwnedValue
§fn try_from(s: SmsProperties) -> Result<Self>
fn try_from(s: SmsProperties) -> Result<Self>
Performs the conversion.
§impl TryFrom<Value<'static>> for SmsProperties
impl TryFrom<Value<'static>> for SmsProperties
§impl Type for SmsProperties
impl Type for SmsProperties
Auto Trait Implementations§
impl Freeze for SmsProperties
impl RefUnwindSafe for SmsProperties
impl Send for SmsProperties
impl Sync for SmsProperties
impl Unpin for SmsProperties
impl UnsafeUnpin for SmsProperties
impl UnwindSafe for SmsProperties
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.