pub struct TrustedContact {
pub given_name: String,
pub family_name: String,
pub email_address: Option<String>,
pub phone_number: Option<String>,
pub street_address: Option<Vec<String>>,
pub city: Option<String>,
pub state: Option<String>,
pub postal_code: Option<String>,
pub country: Option<String>,
}Expand description
Trusted contact for broker account.
Fields§
§given_name: StringGiven name.
family_name: StringFamily name.
email_address: Option<String>Email address.
phone_number: Option<String>Phone number.
street_address: Option<Vec<String>>Street address.
city: Option<String>City.
state: Option<String>State.
postal_code: Option<String>Postal code.
country: Option<String>Country.
Implementations§
Source§impl TrustedContact
impl TrustedContact
Sourcepub fn new(given_name: &str, family_name: &str) -> TrustedContact
pub fn new(given_name: &str, family_name: &str) -> TrustedContact
Create new trusted contact.
Sourcepub fn email(self, email: &str) -> TrustedContact
pub fn email(self, email: &str) -> TrustedContact
Set email.
Sourcepub fn phone(self, phone: &str) -> TrustedContact
pub fn phone(self, phone: &str) -> TrustedContact
Set phone.
Trait Implementations§
Source§impl Clone for TrustedContact
impl Clone for TrustedContact
Source§fn clone(&self) -> TrustedContact
fn clone(&self) -> TrustedContact
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 TrustedContact
impl Debug for TrustedContact
Source§impl Default for TrustedContact
impl Default for TrustedContact
Source§fn default() -> TrustedContact
fn default() -> TrustedContact
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrustedContact
impl<'de> Deserialize<'de> for TrustedContact
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TrustedContact, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TrustedContact, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TrustedContact
impl Serialize for TrustedContact
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TrustedContact
impl RefUnwindSafe for TrustedContact
impl Send for TrustedContact
impl Sync for TrustedContact
impl Unpin for TrustedContact
impl UnwindSafe for TrustedContact
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