pub struct CurrentPlmn {
pub state: String,
pub full_name: Option<String>,
pub short_name: Option<String>,
pub numeric: Option<String>,
pub rat: Option<NetworkType>,
}Expand description
Current PLMN (network operator) information from /api/net/current-plmn
Fields§
§state: String§full_name: Option<String>§short_name: Option<String>§numeric: Option<String>§rat: Option<NetworkType>Implementations§
Source§impl CurrentPlmn
impl CurrentPlmn
Sourcepub fn operator_name(&self) -> Option<&str>
pub fn operator_name(&self) -> Option<&str>
Get operator name (full name if available, otherwise short name)
Trait Implementations§
Source§impl Clone for CurrentPlmn
impl Clone for CurrentPlmn
Source§fn clone(&self) -> CurrentPlmn
fn clone(&self) -> CurrentPlmn
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 CurrentPlmn
impl Debug for CurrentPlmn
Source§impl<'de> Deserialize<'de> for CurrentPlmn
impl<'de> Deserialize<'de> for CurrentPlmn
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
Auto Trait Implementations§
impl Freeze for CurrentPlmn
impl RefUnwindSafe for CurrentPlmn
impl Send for CurrentPlmn
impl Sync for CurrentPlmn
impl Unpin for CurrentPlmn
impl UnsafeUnpin for CurrentPlmn
impl UnwindSafe for CurrentPlmn
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