pub struct ContactConnected {
pub user: User,
pub contact: Contact,
pub user_custom_profile: Option<Profile>,
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.
This event is sent after a user connects via bot SimpleX address (not a business address).
Fields§
§user: User§contact: Contact§user_custom_profile: Option<Profile>§undocumented: HashMap<String, Value>Trait Implementations§
Source§impl Clone for ContactConnected
impl Clone for ContactConnected
Source§fn clone(&self) -> ContactConnected
fn clone(&self) -> ContactConnected
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 ContactConnected
impl Debug for ContactConnected
Source§impl<'de> Deserialize<'de> for ContactConnected
impl<'de> Deserialize<'de> for ContactConnected
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContactConnected, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContactConnected, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContactConnected
impl PartialEq for ContactConnected
Source§impl Serialize for ContactConnected
impl Serialize for ContactConnected
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 ContactConnected
Auto Trait Implementations§
impl Freeze for ContactConnected
impl RefUnwindSafe for ContactConnected
impl Send for ContactConnected
impl Sync for ContactConnected
impl Unpin for ContactConnected
impl UnwindSafe for ContactConnected
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