pub struct ContactDeletedByContact {
pub user: User,
pub contact: Contact,
pub undocumented: BTreeMap<String, JsonObject>,
}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.
Bot user’s connection with another contact is deleted (conversation is kept).
Fields§
§user: User§contact: Contact§undocumented: BTreeMap<String, JsonObject>Trait Implementations§
Source§impl Clone for ContactDeletedByContact
impl Clone for ContactDeletedByContact
Source§fn clone(&self) -> ContactDeletedByContact
fn clone(&self) -> ContactDeletedByContact
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 ContactDeletedByContact
impl Debug for ContactDeletedByContact
Source§impl<'de> Deserialize<'de> for ContactDeletedByContact
impl<'de> Deserialize<'de> for ContactDeletedByContact
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 PartialEq for ContactDeletedByContact
impl PartialEq for ContactDeletedByContact
Source§impl Serialize for ContactDeletedByContact
impl Serialize for ContactDeletedByContact
impl StructuralPartialEq for ContactDeletedByContact
Auto Trait Implementations§
impl Freeze for ContactDeletedByContact
impl RefUnwindSafe for ContactDeletedByContact
impl Send for ContactDeletedByContact
impl Sync for ContactDeletedByContact
impl Unpin for ContactDeletedByContact
impl UnwindSafe for ContactDeletedByContact
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