pub struct ContactInfo {
pub method: String,
pub info: String,
}
Expand description
Contact Info
Fields§
§method: String
Contact Method i.e. nostr
info: String
Contact info i.e. npub…
Implementations§
Source§impl ContactInfo
impl ContactInfo
Sourcepub fn new(method: String, info: String) -> ContactInfo
pub fn new(method: String, info: String) -> ContactInfo
Create new ContactInfo
Trait Implementations§
Source§impl Clone for ContactInfo
impl Clone for ContactInfo
Source§fn clone(&self) -> ContactInfo
fn clone(&self) -> ContactInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContactInfo
impl Debug for ContactInfo
Source§impl<'de> Deserialize<'de> for ContactInfo
impl<'de> Deserialize<'de> for ContactInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContactInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContactInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ContactInfo
impl Hash for ContactInfo
Source§impl PartialEq for ContactInfo
impl PartialEq for ContactInfo
Source§impl Serialize for ContactInfo
impl Serialize for ContactInfo
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
impl Eq for ContactInfo
impl StructuralPartialEq for ContactInfo
Auto Trait Implementations§
impl Freeze for ContactInfo
impl RefUnwindSafe for ContactInfo
impl Send for ContactInfo
impl Sync for ContactInfo
impl Unpin for ContactInfo
impl UnwindSafe for ContactInfo
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