pub struct ContactUpdated {
pub user: User,
pub from_contact: Contact,
pub to_contact: Contact,
pub undocumented: HashMap<String, Value>,
}Expand description
§Contact connection events
Bots must use these events to process connecting users.
Most bots enable auto-accept and don’t need to accept connections via commands.
You may create bot SimpleX address manually via CLI or desktop app or from bot code with these commands:
- APIShowMyAddress to check if address exists,
- APICreateMyAddress to create address,
- APISetAddressSettings to enable auto-access.
Contact profile of another user is updated.
Fields§
§user: User§from_contact: Contact§to_contact: Contact§undocumented: HashMap<String, Value>Trait Implementations§
Source§impl Clone for ContactUpdated
impl Clone for ContactUpdated
Source§fn clone(&self) -> ContactUpdated
fn clone(&self) -> ContactUpdated
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 ContactUpdated
impl Debug for ContactUpdated
Source§impl<'de> Deserialize<'de> for ContactUpdated
impl<'de> Deserialize<'de> for ContactUpdated
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContactUpdated, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContactUpdated, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContactUpdated
impl PartialEq for ContactUpdated
Source§impl Serialize for ContactUpdated
impl Serialize for ContactUpdated
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 StructuralPartialEq for ContactUpdated
Auto Trait Implementations§
impl Freeze for ContactUpdated
impl RefUnwindSafe for ContactUpdated
impl Send for ContactUpdated
impl Sync for ContactUpdated
impl Unpin for ContactUpdated
impl UnwindSafe for ContactUpdated
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