pub struct PhoneNumbers {
pub code: String,
pub country: String,
pub label: Option<Label>,
pub number: String,
}
Fields§
§code: String
User’s first name.
country: String
User’s first name.
label: Option<Label>
The label to add to the user’s phone number. You can only add one label to the user’s phone number:
* Mobile
* Office
* Home
* Fax
number: String
User’s first name.
Trait Implementations§
Source§impl Clone for PhoneNumbers
impl Clone for PhoneNumbers
Source§fn clone(&self) -> PhoneNumbers
fn clone(&self) -> PhoneNumbers
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 PhoneNumbers
impl Debug for PhoneNumbers
Source§impl<'de> Deserialize<'de> for PhoneNumbers
impl<'de> Deserialize<'de> for PhoneNumbers
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
Source§impl JsonSchema for PhoneNumbers
impl JsonSchema for PhoneNumbers
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl PartialEq for PhoneNumbers
impl PartialEq for PhoneNumbers
Source§impl Serialize for PhoneNumbers
impl Serialize for PhoneNumbers
impl StructuralPartialEq for PhoneNumbers
Auto Trait Implementations§
impl Freeze for PhoneNumbers
impl RefUnwindSafe for PhoneNumbers
impl Send for PhoneNumbers
impl Sync for PhoneNumbers
impl Unpin for PhoneNumbers
impl UnwindSafe for PhoneNumbers
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