pub struct HttpSmsDeviceInfoData {
pub version: String,
pub phone_number: Option<String>,
pub service_provider: Option<String>,
pub network_operator: Option<HttpModemNetworkOperatorResponse>,
pub network_status: Option<HttpModemNetworkStatusResponse>,
pub battery: Option<HttpModemBatteryLevelResponse>,
pub signal: Option<HttpModemSignalStrengthResponse>,
}
Expand description
Formatted device info response, with each value packed into a proper optional response.
Fields§
§version: String
SMS API version string, including features.
phone_number: Option<String>
The phone number associated with the SMS device
service_provider: Option<String>
The name of the cellular service provider
network_operator: Option<HttpModemNetworkOperatorResponse>
Detailed network operator information and capabilities
network_status: Option<HttpModemNetworkStatusResponse>
Current network connection status and diagnostics
battery: Option<HttpModemBatteryLevelResponse>
Battery level, charging state, and power metrics
signal: Option<HttpModemSignalStrengthResponse>
Signal strength measurements and quality indicators
Trait Implementations§
Source§impl Clone for HttpSmsDeviceInfoData
impl Clone for HttpSmsDeviceInfoData
Source§fn clone(&self) -> HttpSmsDeviceInfoData
fn clone(&self) -> HttpSmsDeviceInfoData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HttpSmsDeviceInfoData
impl Debug for HttpSmsDeviceInfoData
Source§impl<'de> Deserialize<'de> for HttpSmsDeviceInfoData
impl<'de> Deserialize<'de> for HttpSmsDeviceInfoData
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<HttpSmsDeviceInfoResponse> for HttpSmsDeviceInfoData
impl From<HttpSmsDeviceInfoResponse> for HttpSmsDeviceInfoData
Source§fn from(value: HttpSmsDeviceInfoResponse) -> HttpSmsDeviceInfoData
fn from(value: HttpSmsDeviceInfoResponse) -> HttpSmsDeviceInfoData
Converts to this type from the input type.
Source§impl PartialEq for HttpSmsDeviceInfoData
impl PartialEq for HttpSmsDeviceInfoData
impl StructuralPartialEq for HttpSmsDeviceInfoData
Auto Trait Implementations§
impl Freeze for HttpSmsDeviceInfoData
impl RefUnwindSafe for HttpSmsDeviceInfoData
impl Send for HttpSmsDeviceInfoData
impl Sync for HttpSmsDeviceInfoData
impl Unpin for HttpSmsDeviceInfoData
impl UnwindSafe for HttpSmsDeviceInfoData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more