pub struct ProfileSpouse {
pub id: UserId,
pub name: String,
pub status: UserMaritalStatusEnum,
pub days_married: Option<i32>,
}
Expand description
The property ‘days_married’ is not present if the status is ‘Engaged’
Fields§
§id: UserId
§name: String
§status: UserMaritalStatusEnum
§days_married: Option<i32>
Trait Implementations§
Source§impl Clone for ProfileSpouse
impl Clone for ProfileSpouse
Source§fn clone(&self) -> ProfileSpouse
fn clone(&self) -> ProfileSpouse
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 ProfileSpouse
impl Debug for ProfileSpouse
Source§impl<'de> Deserialize<'de> for ProfileSpouse
impl<'de> Deserialize<'de> for ProfileSpouse
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 PartialEq for ProfileSpouse
impl PartialEq for ProfileSpouse
impl StructuralPartialEq for ProfileSpouse
Auto Trait Implementations§
impl Freeze for ProfileSpouse
impl RefUnwindSafe for ProfileSpouse
impl Send for ProfileSpouse
impl Sync for ProfileSpouse
impl Unpin for ProfileSpouse
impl UnwindSafe for ProfileSpouse
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