Enum whatsappweb::connection::UserData [−][src]
pub enum UserData { ContactsInitial(Vec<Contact>), ContactAddChange(Contact), ContactDelete(Jid), Chats(Vec<Chat>), ChatAction(Jid, ChatAction), UserJid(Jid), PresenceChange(Jid, PresenceStatus, Option<NaiveDateTime>), MessageAck(MessageAck), GroupIntroduce { newly_created: bool, inducer: Jid, meta: GroupMetadata, }, GroupParticipantsChange { group: Jid, change: GroupParticipantsChange, inducer: Option<Jid>, participants: Vec<Jid>, }, Battery(u8), }
Variants
ContactsInitial(Vec<Contact>)
Contacts are initial send by the app
ContactAddChange(Contact)
Contact is added or changed
ContactDelete(Jid)
Contact is removed
Chats(Vec<Chat>)
Chats are initial send by the app
ChatAction(Jid, ChatAction)
UserJid(Jid)
Jid of the own user
PresenceChange(Jid, PresenceStatus, Option<NaiveDateTime>)
MessageAck(MessageAck)
GroupIntroduce
Fields of GroupIntroduce
newly_created: bool | |
inducer: Jid | |
meta: GroupMetadata |
GroupParticipantsChange
Fields of GroupParticipantsChange
group: Jid | |
change: GroupParticipantsChange | |
inducer: Option<Jid> | |
participants: Vec<Jid> |
Battery(u8)
Batterylevel which is submitted by the app