pub struct StatusUpdateItem {
pub payload: Value,
pub info: Option<String>,
pub href: Option<String>,
pub document: Option<String>,
pub summary: Option<String>,
pub uid: Option<String>,
pub notify: Option<HashMap<String, String>>,
}
Expand description
Update items as sent on the wire and as stored in the database.
Fields§
§payload: Value
The playload of the status update.
info: Option<String>
Optional short info message that will be displayed in the chat. For example “Alice added an item” or “Bob voted for option x”.
href: Option<String>
Optional link the info message will point to.
Used to set window.location.href
in JS land.
document: Option<String>
The new name of the editing document. This is not needed if the webxdc doesn’t edit documents.
summary: Option<String>
Optional summary of the status update which will be shown next to the app icon. This should be short and can be something like “8 votes” for a voting app.
uid: Option<String>
Unique ID for deduplication. This can be used if the message is sent over multiple transports.
If there is no ID, message is always considered to be unique.
notify: Option<HashMap<String, String>>
Array of other users selfAddr
that should be notified about this update.