Struct huawei_modem::pdu::AddressType
source · pub struct AddressType {
pub type_of_number: TypeOfNumber,
pub numbering_plan_identification: NumberingPlanIdentification,
}
Expand description
Address type, comprised of a TypeOfNumber
and NumberingPlanIdentification
value.
It is highly recommended that you just use the Default
value of this struct
, unless you
know what you’re doing, and that your phone numbers are in international format (i.e. starting
with +
).
Fields§
§type_of_number: TypeOfNumber
§numbering_plan_identification: NumberingPlanIdentification
Trait Implementations§
source§impl Clone for AddressType
impl Clone for AddressType
source§fn clone(&self) -> AddressType
fn clone(&self) -> AddressType
Returns a copy 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 AddressType
impl Debug for AddressType
source§impl Default for AddressType
impl Default for AddressType
source§impl Hash for AddressType
impl Hash for AddressType
source§impl Into<u8> for AddressType
impl Into<u8> for AddressType
source§impl PartialEq<AddressType> for AddressType
impl PartialEq<AddressType> for AddressType
source§fn eq(&self, other: &AddressType) -> bool
fn eq(&self, other: &AddressType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for AddressType
impl TryFrom<u8> for AddressType
§type Error = HuaweiError
type Error = HuaweiError
The type returned in the event of a conversion error.
source§fn try_from(b: u8) -> HuaweiResult<Self>
fn try_from(b: u8) -> HuaweiResult<Self>
Performs the conversion.
impl Copy for AddressType
impl Eq for AddressType
impl StructuralEq for AddressType
impl StructuralPartialEq for AddressType
Auto Trait Implementations§
impl RefUnwindSafe for AddressType
impl Send for AddressType
impl Sync for AddressType
impl Unpin for AddressType
impl UnwindSafe for AddressType
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