pub trait EncodedSubmitSmExt {
// Required method
fn encode<'a>(
self,
short_message: &'a str,
) -> EncodedSubmitSmBuilder<'a, Gsm7BitUnpacked>;
}Available on crate features
encoding and alloc only.Expand description
Extension trait for SubmitSm to create encoded messages.
Required Methods§
Sourcefn encode<'a>(
self,
short_message: &'a str,
) -> EncodedSubmitSmBuilder<'a, Gsm7BitUnpacked>
fn encode<'a>( self, short_message: &'a str, ) -> EncodedSubmitSmBuilder<'a, Gsm7BitUnpacked>
Creates a new EncodedSubmitSmBuilder with the default Gsm7BitUnpacked encoder.
§Notes
SubmitSm::data_codingwill be overridden by the multipart builder to match the encoder.SubmitSm::short_messagewill be overridden byshort_messageof the multipart builder.