pub struct AccountDetails {
pub email: Option<String>,
pub phone: Option<String>,
pub real_name: Option<String>,
}Expand description
The contact details an account can change about itself.
Each is None for “leave this alone” rather than empty-for-unchanged,
because empty is a value somebody may legitimately want to store: clearing a
phone number is a change, not a no-op, and the two must not be the same
request.
Fields§
§email: Option<String>§phone: Option<String>§real_name: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for AccountDetails
impl Clone for AccountDetails
Source§impl Debug for AccountDetails
impl Debug for AccountDetails
Source§impl Default for AccountDetails
impl Default for AccountDetails
impl Eq for AccountDetails
Source§impl PartialEq for AccountDetails
impl PartialEq for AccountDetails
impl StructuralPartialEq for AccountDetails
Auto Trait Implementations§
impl Freeze for AccountDetails
impl RefUnwindSafe for AccountDetails
impl Send for AccountDetails
impl Sync for AccountDetails
impl Unpin for AccountDetails
impl UnsafeUnpin for AccountDetails
impl UnwindSafe for AccountDetails
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.