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>
Sourcepub fn into_parts(self) -> QuerySmParts<'a>
pub fn into_parts(self) -> QuerySmParts<'a>
Converts Self into its parts.
Sourcepub fn from_parts(parts: QuerySmParts<'a>) -> Self
pub fn from_parts(parts: QuerySmParts<'a>) -> Self
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 moreSource§impl<'a> Ord for QuerySm<'a>
impl<'a> Ord for QuerySm<'a>
Source§impl<'a> PartialOrd for QuerySm<'a>
impl<'a> PartialOrd for QuerySm<'a>
impl<'a> Eq for QuerySm<'a>
impl<'a> StructuralPartialEq for QuerySm<'a>
Auto Trait Implementations§
impl<'a> Freeze for QuerySm<'a>
impl<'a> RefUnwindSafe for QuerySm<'a>
impl<'a> Send for QuerySm<'a>
impl<'a> Sync for QuerySm<'a>
impl<'a> Unpin for QuerySm<'a>
impl<'a> UnwindSafe for QuerySm<'a>
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)