pub enum TypedMessage {
Pub {
address: Option<PubAddress>,
},
Post {
text: String,
mentions: Option<Vec<Mention>>,
},
Contact {
contact: Option<SsbId>,
blocking: Option<bool>,
following: Option<bool>,
autofollow: Option<bool>,
},
About {
about: SsbId,
name: Option<String>,
title: Option<String>,
branch: Option<SsbHash>,
image: Option<Image>,
description: Option<String>,
location: Option<String>,
start_datetime: Option<DateTime>,
},
Channel {
channel: String,
subscribed: bool,
},
Vote {
vote: Vote,
},
}
Variants
Pub
Fields
address: Option<PubAddress>
Post
Contact
About
Fields
about: SsbId
Channel
Vote
Fields
vote: Vote
Trait Implementations
sourceimpl Debug for TypedMessage
impl Debug for TypedMessage
sourceimpl<'de> Deserialize<'de> for TypedMessage
impl<'de> Deserialize<'de> for TypedMessage
sourcefn 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
sourceimpl Serialize for TypedMessage
impl Serialize for TypedMessage
Auto Trait Implementations
impl RefUnwindSafe for TypedMessage
impl Send for TypedMessage
impl Sync for TypedMessage
impl Unpin for TypedMessage
impl UnwindSafe for TypedMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more