pub struct Rpc_Req_WifiSetCountry {
pub country: wifi_country,
pub _has: _Hazzer,
}
Fields§
§country: wifi_country
§_has: _Hazzer
Implementations§
Source§impl Rpc_Req_WifiSetCountry
impl Rpc_Req_WifiSetCountry
Sourcepub fn country(&self) -> Option<&wifi_country>
pub fn country(&self) -> Option<&wifi_country>
Return a reference to country
as an Option
Sourcepub fn set_country(&mut self, value: wifi_country) -> &mut Self
pub fn set_country(&mut self, value: wifi_country) -> &mut Self
Set the value and presence of country
Sourcepub fn mut_country(&mut self) -> Option<&mut wifi_country>
pub fn mut_country(&mut self) -> Option<&mut wifi_country>
Return a mutable reference to country
as an Option
Sourcepub fn clear_country(&mut self) -> &mut Self
pub fn clear_country(&mut self) -> &mut Self
Clear the presence of country
Sourcepub fn take_country(&mut self) -> Option<wifi_country>
pub fn take_country(&mut self) -> Option<wifi_country>
Take the value of country
and clear its presence
Sourcepub fn init_country(self, value: wifi_country) -> Self
pub fn init_country(self, value: wifi_country) -> Self
Builder method that sets the value of country
. Useful for initializing the message.
Trait Implementations§
Source§impl Clone for Rpc_Req_WifiSetCountry
impl Clone for Rpc_Req_WifiSetCountry
Source§fn clone(&self) -> Rpc_Req_WifiSetCountry
fn clone(&self) -> Rpc_Req_WifiSetCountry
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 Rpc_Req_WifiSetCountry
impl Debug for Rpc_Req_WifiSetCountry
Source§impl Default for Rpc_Req_WifiSetCountry
impl Default for Rpc_Req_WifiSetCountry
Source§fn default() -> Rpc_Req_WifiSetCountry
fn default() -> Rpc_Req_WifiSetCountry
Returns the “default value” for a type. Read more
Source§impl MessageDecode for Rpc_Req_WifiSetCountry
impl MessageDecode for Rpc_Req_WifiSetCountry
Source§fn decode<IMPL_MICROPB_READ: PbRead>(
&mut self,
decoder: &mut PbDecoder<IMPL_MICROPB_READ>,
len: usize,
) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>
fn decode<IMPL_MICROPB_READ: PbRead>( &mut self, decoder: &mut PbDecoder<IMPL_MICROPB_READ>, len: usize, ) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>
Decode an instance of the message from the decoder and merge it into
self
. Read moreSource§fn decode_from_bytes(
&mut self,
bytes: &[u8],
) -> Result<(), DecodeError<Infallible>>
fn decode_from_bytes( &mut self, bytes: &[u8], ) -> Result<(), DecodeError<Infallible>>
Decode an instance of the message from the provided bytes
Source§fn decode_len_delimited<R>(
&mut self,
decoder: &mut PbDecoder<R>,
) -> Result<(), DecodeError<<R as PbRead>::Error>>where
R: PbRead,
fn decode_len_delimited<R>(
&mut self,
decoder: &mut PbDecoder<R>,
) -> Result<(), DecodeError<<R as PbRead>::Error>>where
R: PbRead,
Decode an instance of the message from the decoder as a length-delimited record, starting with a length
prefix.
Source§impl MessageEncode for Rpc_Req_WifiSetCountry
impl MessageEncode for Rpc_Req_WifiSetCountry
Source§impl PartialEq for Rpc_Req_WifiSetCountry
impl PartialEq for Rpc_Req_WifiSetCountry
Auto Trait Implementations§
impl Freeze for Rpc_Req_WifiSetCountry
impl RefUnwindSafe for Rpc_Req_WifiSetCountry
impl Send for Rpc_Req_WifiSetCountry
impl Sync for Rpc_Req_WifiSetCountry
impl Unpin for Rpc_Req_WifiSetCountry
impl UnwindSafe for Rpc_Req_WifiSetCountry
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