pub struct QuerySm {
pub message_id: COctetString<1, 65>,
pub source_addr_ton: Ton,
pub source_addr_npi: Npi,
pub source_addr: COctetString<1, 21>,
}alloc only.Expand description
This command is issued by the ESME to query the status of a previously submitted short message. The matching mechanism is based on the MC assigned message_id and source address. Where the original submit_sm, data_sm or submit_multi ‘source address’ was defaulted to NULL, then the source address in the query_sm command should also be set to NULL.
Fields§
§message_id: COctetString<1, 65>Message ID of the message whose state is to be queried. This must be the MC assigned Message ID allocated to the original short message when submitted to the MC by the submit_sm, data_sm or submit_multi command, and returned in the response PDU by the MC.
source_addr_ton: TonType of Number of message originator. This is used for verification purposes, and must match that supplied in the original request PDU (e.g. submit_sm).
If not known, set to NULL.
source_addr_npi: NpiNumbering Plan Identity of message originator. This is used for verification purposes, and must match that supplied in the original message submission request PDU.
If not known, set to NULL.
source_addr: COctetString<1, 21>Address of message originator. This is used for verification purposes, and must match that supplied in the original request PDU (e.g. submit_sm).
If not known, set to NULL.
Implementations§
Source§impl QuerySm
impl QuerySm
Sourcepub fn into_parts(self) -> QuerySmParts
pub fn into_parts(self) -> QuerySmParts
Converts Self into its parts.
Sourcepub fn from_parts(parts: QuerySmParts) -> Self
pub fn from_parts(parts: QuerySmParts) -> Self
Source§impl QuerySm
impl QuerySm
pub fn new( message_id: COctetString<1, 65>, source_addr_ton: Ton, source_addr_npi: Npi, source_addr: COctetString<1, 21>, ) -> Self
pub fn builder() -> QuerySmBuilder
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for QuerySm
impl<'arbitrary> Arbitrary<'arbitrary> for QuerySm
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<'de> Deserialize<'de> for QuerySm
impl<'de> Deserialize<'de> for QuerySm
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 Ord for QuerySm
impl Ord for QuerySm
Source§impl PartialOrd for QuerySm
impl PartialOrd for QuerySm
impl Eq for QuerySm
impl StructuralPartialEq for QuerySm
Auto Trait Implementations§
impl !Freeze for QuerySm
impl RefUnwindSafe for QuerySm
impl Send for QuerySm
impl Sync for QuerySm
impl Unpin for QuerySm
impl UnwindSafe for QuerySm
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)