pub struct CustomerContact {
pub nostr: Option<PublicKey>,
pub phone: Option<String>,
pub email: Option<String>,
}Expand description
A customers contact options
Fields§
§nostr: Option<PublicKey>Nostr pub key of the customer (optional, as not decided yet if required)
phone: Option<String>Phone number of the customer
email: Option<String>Email of the customer
Trait Implementations§
Source§impl Clone for CustomerContact
impl Clone for CustomerContact
Source§fn clone(&self) -> CustomerContact
fn clone(&self) -> CustomerContact
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 CustomerContact
impl Debug for CustomerContact
Source§impl<'de> Deserialize<'de> for CustomerContact
impl<'de> Deserialize<'de> for CustomerContact
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 JsonUtil for CustomerContact
impl JsonUtil for CustomerContact
Source§fn as_pretty_json(&self) -> String
fn as_pretty_json(&self) -> String
Serialize as pretty JSON string Read more
Auto Trait Implementations§
impl Freeze for CustomerContact
impl RefUnwindSafe for CustomerContact
impl Send for CustomerContact
impl Sync for CustomerContact
impl Unpin for CustomerContact
impl UnwindSafe for CustomerContact
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