pub struct HttpSmsDeviceInfoResponse {
pub version: String,
pub phone_number: Option<String>,
pub service_provider: Option<String>,
pub network_operator: Option<(u8, u8, String)>,
pub network_status: Option<(u8, u8)>,
pub battery: Option<(u8, u8, f32)>,
pub signal: Option<(u8, u8)>,
}
Expand description
The raw DeviceInfoResponse with raw values.
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<(u8, u8, String)>
Network operator information as (code1, code2, operator_name)
network_status: Option<(u8, u8)>
Current network connection status as (status_code, strength_indicator)
battery: Option<(u8, u8, f32)>
Battery information as (level_percentage, charging_status, voltage)
signal: Option<(u8, u8)>
Signal strength information as (strength_level, quality_indicator)
Trait Implementations§
Source§impl Clone for HttpSmsDeviceInfoResponse
impl Clone for HttpSmsDeviceInfoResponse
Source§fn clone(&self) -> HttpSmsDeviceInfoResponse
fn clone(&self) -> HttpSmsDeviceInfoResponse
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 HttpSmsDeviceInfoResponse
impl Debug for HttpSmsDeviceInfoResponse
Source§impl<'de> Deserialize<'de> for HttpSmsDeviceInfoResponse
impl<'de> Deserialize<'de> for HttpSmsDeviceInfoResponse
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.
impl StructuralPartialEq for HttpSmsDeviceInfoResponse
Auto Trait Implementations§
impl Freeze for HttpSmsDeviceInfoResponse
impl RefUnwindSafe for HttpSmsDeviceInfoResponse
impl Send for HttpSmsDeviceInfoResponse
impl Sync for HttpSmsDeviceInfoResponse
impl Unpin for HttpSmsDeviceInfoResponse
impl UnwindSafe for HttpSmsDeviceInfoResponse
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