Struct phonenumber::metadata::Descriptors
source · pub struct Descriptors { /* private fields */ }
Expand description
Descriptors for various types of phone number.
Implementations§
source§impl Descriptors
impl Descriptors
sourcepub fn get(&self, kind: Type) -> Option<&Descriptor>
pub fn get(&self, kind: Type) -> Option<&Descriptor>
Get the proper descriptor for the given phone number type, if any.
pub fn general(&self) -> &Descriptor
pub fn fixed_line(&self) -> Option<&Descriptor>
pub fn mobile(&self) -> Option<&Descriptor>
pub fn toll_free(&self) -> Option<&Descriptor>
pub fn personal_number(&self) -> Option<&Descriptor>
pub fn voip(&self) -> Option<&Descriptor>
pub fn pager(&self) -> Option<&Descriptor>
pub fn uan(&self) -> Option<&Descriptor>
pub fn emergency(&self) -> Option<&Descriptor>
pub fn voicemail(&self) -> Option<&Descriptor>
pub fn short_code(&self) -> Option<&Descriptor>
pub fn standard_rate(&self) -> Option<&Descriptor>
pub fn carrier(&self) -> Option<&Descriptor>
pub fn no_international(&self) -> Option<&Descriptor>
Trait Implementations§
source§impl Clone for Descriptors
impl Clone for Descriptors
source§fn clone(&self) -> Descriptors
fn clone(&self) -> Descriptors
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 moreAuto Trait Implementations§
impl RefUnwindSafe for Descriptors
impl Send for Descriptors
impl Sync for Descriptors
impl Unpin for Descriptors
impl UnwindSafe for Descriptors
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