Struct deltachat::webxdc::StatusUpdateItem
source · pub struct StatusUpdateItem {
pub payload: Value,
pub info: Option<String>,
pub document: Option<String>,
pub summary: Option<String>,
pub uid: Option<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”.
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.
Trait Implementations§
source§impl Debug for StatusUpdateItem
impl Debug for StatusUpdateItem
source§impl Default for StatusUpdateItem
impl Default for StatusUpdateItem
source§fn default() -> StatusUpdateItem
fn default() -> StatusUpdateItem
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StatusUpdateItem
impl<'de> Deserialize<'de> for StatusUpdateItem
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for StatusUpdateItem
impl Send for StatusUpdateItem
impl Sync for StatusUpdateItem
impl Unpin for StatusUpdateItem
impl UnwindSafe for StatusUpdateItem
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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