pub struct QuerySm<'a> {
pub message_id: COctetString<'a, 1, 65>,
pub source_addr_ton: Ton,
pub source_addr_npi: Npi,
pub source_addr: COctetString<'a, 1, 21>,
}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<'a, 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<'a, 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<'a> QuerySm<'a>
impl<'a> QuerySm<'a>
pub fn into_parts(self) -> QuerySmParts<'a>
Source§impl<'a> QuerySm<'a>
impl<'a> QuerySm<'a>
pub fn new( message_id: COctetString<'a, 1, 65>, source_addr_ton: Ton, source_addr_npi: Npi, source_addr: COctetString<'a, 1, 21>, ) -> Self
pub fn builder() -> QuerySmBuilder<'a>
Trait Implementations§
Source§impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for QuerySm<'a>
impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for QuerySm<'a>
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 more