pub struct ContactUpdated {
pub user: User,
pub from_contact: Contact,
pub to_contact: Contact,
pub undocumented: 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: ValueImplementations§
Source§impl ContactUpdated
impl ContactUpdated
Sourcepub fn builder() -> ContactUpdatedBuilder
pub fn builder() -> ContactUpdatedBuilder
Create an instance of ContactUpdated using the builder syntax
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 (const: unstable) · 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 EventData for ContactUpdated
impl EventData for ContactUpdated
const KIND: EventKind = EventKind::ContactUpdated
fn from_event(ev: Event) -> Result<Arc<ContactUpdated>, Event>
fn into_event(self: Arc<ContactUpdated>) -> Event
Source§impl PartialEq for ContactUpdated
impl PartialEq for ContactUpdated
Source§fn eq(&self, other: &ContactUpdated) -> bool
fn eq(&self, other: &ContactUpdated) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more