Struct phonenumber::metadata::loader::Format
source · pub struct Format {
pub pattern: Option<String>,
pub format: Option<String>,
pub leading_digits: Vec<String>,
pub national_prefix_formatting_rule: Option<String>,
pub national_prefix_optional_when_formatting: bool,
pub domestic_carrier: Option<String>,
}
Expand description
Parsed version of metadata::Format
.
Fields§
§pattern: Option<String>
§format: Option<String>
§leading_digits: Vec<String>
§national_prefix_formatting_rule: Option<String>
§national_prefix_optional_when_formatting: bool
§domestic_carrier: Option<String>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Format
impl<'de> Deserialize<'de> for Format
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 Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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