pub struct ContactSndReady {
pub user: User,
pub 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.
Connecting via 1-time invitation or after accepting contact request.
After this event bot can send messages to this contact.
Fields§
§user: User§contact: Contact§undocumented: HashMap<String, Value>Trait Implementations§
Source§impl Clone for ContactSndReady
impl Clone for ContactSndReady
Source§fn clone(&self) -> ContactSndReady
fn clone(&self) -> ContactSndReady
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 ContactSndReady
impl Debug for ContactSndReady
Source§impl<'de> Deserialize<'de> for ContactSndReady
impl<'de> Deserialize<'de> for ContactSndReady
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContactSndReady, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContactSndReady, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContactSndReady
impl PartialEq for ContactSndReady
Source§impl Serialize for ContactSndReady
impl Serialize for ContactSndReady
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 ContactSndReady
Auto Trait Implementations§
impl Freeze for ContactSndReady
impl RefUnwindSafe for ContactSndReady
impl Send for ContactSndReady
impl Sync for ContactSndReady
impl Unpin for ContactSndReady
impl UnwindSafe for ContactSndReady
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