Structs§
- Disconnected
- Data payload of the
disconnectedevent.will_reconnectis always present:truemeans the engine reconnects by itself,falsemeans the session stays offline until you act (seeresume). Decode withserde_json::from_str::<Disconnected>(event.data.get()). - Event
- Incoming
Message - Mark
Read Params - Message
Response - Pair
Phone Result - Pairing
Failed - Data payload of the
pairing.failedevent: how a pairing attempt ended without linking the number.atis the end of the attempt, ISO 8601. Decode withserde_json::from_str::<PairingFailed>(event.data.get()). - Pairing
Succeeded - Data payload of the
pairing.succeededevent, sent just beforeconnected. Decode withserde_json::from_str::<PairingSucceeded>(event.data.get()). - Presence
Params - QRCode
- Receipt
- Data payload of the
receiptevent. One receipt can acknowledge several messages (message_ids); in groups there is one receipt per participant. Decode withserde_json::from_str::<Receipt>(event.data.get()). - Send
Audio Params - Send
Contact Params - Send
Document Params - Send
Image Params - Send
Location Params - Send
Poll Params - Send
Reaction Params - Send
Sticker Params - Send
Text Params - Send
Video Params - Session
Status
Enums§
- Disconnect
Reason - Why a session went offline. The set is closed, but a newer server may add a
value: it decodes as
DisconnectReason::Unknowninstead of failing, so decide byDisconnected::will_reconnectwhenis_knownis false. - Pairing
Failure Reason - Why a pairing attempt ended without linking the number. The set is closed,
but a newer server may add a value: it decodes as
PairingFailureReason::Unknowninstead of failing, so treat it likePairingFailureReason::Errorwhenis_knownis false. - Pairing
Method - How a pairing attempt links the device. A value a newer server adds decodes
as
PairingMethod::Unknowninstead of failing. - Receipt
Status - Normalized delivery state of a
Receipt.