pub struct Person {
pub address: Option<PhysicalAddress>,
pub name: Option<String>,
}Expand description
A natural person, identified by name and physical address.
JSON schema
{
"description": "A natural person, identified by name and physical address.",
"examples": [
{
"address": {
"city": "San Francisco",
"countryCode": "US",
"line1": "123 Market St",
"postCode": "94105",
"state": "CA"
},
"name": "John Doe"
}
],
"type": "object",
"properties": {
"address": {
"description": "Physical address of the person.",
"allOf": [
{
"$ref": "#/components/schemas/PhysicalAddress"
}
]
},
"name": {
"description": "Full legal name of the person.",
"examples": [
"John Doe"
],
"type": "string"
}
}
}Fields§
§address: Option<PhysicalAddress>Physical address of the person.
name: Option<String>Full legal name of the person.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Person
impl<'de> Deserialize<'de> for Person
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 Person
impl RefUnwindSafe for Person
impl Send for Person
impl Sync for Person
impl Unpin for Person
impl UnsafeUnpin for Person
impl UnwindSafe for Person
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