pub struct SubmitMulti {Show 13 fields
pub service_type: ServiceType,
pub source_addr_ton: Ton,
pub source_addr_npi: Npi,
pub source_addr: COctetString<1, 21>,
pub esm_class: EsmClass,
pub protocol_id: u8,
pub priority_flag: PriorityFlag,
pub schedule_delivery_time: EmptyOrFullCOctetString<17>,
pub validity_period: EmptyOrFullCOctetString<17>,
pub registered_delivery: RegisteredDelivery,
pub replace_if_present_flag: ReplaceIfPresentFlag,
pub data_coding: DataCoding,
pub sm_default_msg_id: u8,
/* private fields */
}alloc only.Fields§
§service_type: ServiceTypeThe service_type parameter can be used to indicate the SMS Application service associated with the message. Specifying the service_type allows the ESME to avail of enhanced messaging services such as “replace by service_type” or control the teleservice used on the air interface.
Set to NULL for default MC settings.
source_addr_ton: TonType of Number for source address.
If not known, set to NULL (Unknown).
source_addr_npi: NpiNumbering Plan Indicator for source address.
If not known, set to NULL (Unknown).
source_addr: COctetString<1, 21>Address of SME which originated this message.
If not known, set to NULL (Unknown).
esm_class: EsmClassIndicates Message Mode and Message Type.
protocol_id: u8Protocol Identifier.
Network specific field.
priority_flag: PriorityFlagDesignates the priority level of the message.
schedule_delivery_time: EmptyOrFullCOctetString<17>The short message is to be scheduled by the MC for delivery.
Set to NULL for immediate message delivery.
validity_period: EmptyOrFullCOctetString<17>The validity period of this message.
Set to NULL to request the SMSC default validity period.
Note: this is superseded by the qos_time_to_live TLV if specified.
registered_delivery: RegisteredDeliveryIndicator to signify if a MC delivery receipt or an SME acknowledgement is required.
replace_if_present_flag: ReplaceIfPresentFlagFlag indicating if submitted message should replace an existing message.
data_coding: DataCodingDefines the encoding scheme of the short message user data.
sm_default_msg_id: u8Indicates the short message to send from a list of pre- defined (‘canned’) short messages stored on the MC.
If not using a MC canned message, set to NULL.
Implementations§
Source§impl SubmitMulti
impl SubmitMulti
Sourcepub fn into_parts(self) -> SubmitMultiParts
pub fn into_parts(self) -> SubmitMultiParts
Converts Self into its parts.
Sourcepub fn from_parts(parts: SubmitMultiParts) -> Self
pub fn from_parts(parts: SubmitMultiParts) -> Self
Source§impl SubmitMulti
impl SubmitMulti
pub fn new( service_type: ServiceType, source_addr_ton: Ton, source_addr_npi: Npi, source_addr: COctetString<1, 21>, dest_address: Vec<DestAddress>, esm_class: EsmClass, protocol_id: u8, priority_flag: PriorityFlag, schedule_delivery_time: EmptyOrFullCOctetString<17>, validity_period: EmptyOrFullCOctetString<17>, registered_delivery: RegisteredDelivery, replace_if_present_flag: ReplaceIfPresentFlag, data_coding: DataCoding, sm_default_msg_id: u8, short_message: OctetString<0, 255>, tlvs: Vec<MessageSubmissionRequestTlvValue>, ) -> Self
pub const fn number_of_dests(&self) -> u8
pub fn dest_address(&self) -> &[DestAddress]
pub fn set_dest_address(&mut self, dest_address: Vec<DestAddress>)
pub fn push_dest_address(&mut self, dest_address: DestAddress)
pub fn clear_dest_address(&mut self)
pub const fn sm_length(&self) -> u8
pub const fn short_message(&self) -> &OctetString<0, 255>
Sourcepub fn set_short_message(&mut self, short_message: OctetString<0, 255>)
pub fn set_short_message(&mut self, short_message: OctetString<0, 255>)
Sets the short_message and sm_length.
§Note
short_message is superceded by TlvValue::MessagePayload and should only be used if
TlvValue::MessagePayload is not present.
pub fn tlvs(&self) -> &[Tlv]
pub fn set_tlvs(&mut self, tlvs: Vec<MessageSubmissionRequestTlvValue>)
pub fn clear_tlvs(&mut self)
pub fn push_tlv(&mut self, tlv: impl Into<MessageSubmissionRequestTlvValue>)
pub fn builder() -> SubmitMultiBuilder
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for SubmitMulti
impl<'arbitrary> Arbitrary<'arbitrary> for SubmitMulti
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for SubmitMulti
impl Clone for SubmitMulti
Source§fn clone(&self) -> SubmitMulti
fn clone(&self) -> SubmitMulti
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubmitMulti
impl Debug for SubmitMulti
Source§impl DecodeWithLength for SubmitMulti
impl DecodeWithLength for SubmitMulti
Source§impl Default for SubmitMulti
impl Default for SubmitMulti
Source§fn default() -> SubmitMulti
fn default() -> SubmitMulti
Source§impl<'de> Deserialize<'de> for SubmitMulti
impl<'de> Deserialize<'de> for SubmitMulti
Source§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>,
Source§impl Encode for SubmitMulti
impl Encode for SubmitMulti
Source§impl Encode for SubmitMulti
impl Encode for SubmitMulti
Source§impl From<SubmitMulti> for Pdu
impl From<SubmitMulti> for Pdu
Source§fn from(value: SubmitMulti) -> Self
fn from(value: SubmitMulti) -> Self
Source§impl Hash for SubmitMulti
impl Hash for SubmitMulti
Source§impl Ord for SubmitMulti
impl Ord for SubmitMulti
Source§impl PartialEq for SubmitMulti
impl PartialEq for SubmitMulti
Source§impl PartialOrd for SubmitMulti
impl PartialOrd for SubmitMulti
Source§impl Serialize for SubmitMulti
impl Serialize for SubmitMulti
impl Eq for SubmitMulti
impl StructuralPartialEq for SubmitMulti
Auto Trait Implementations§
impl !Freeze for SubmitMulti
impl RefUnwindSafe for SubmitMulti
impl Send for SubmitMulti
impl Sync for SubmitMulti
impl Unpin for SubmitMulti
impl UnwindSafe for SubmitMulti
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)