pub struct Message {
pub message_id: MessageId,
pub channel: ChannelId,
pub author: AgentPubkey,
pub seq: Seq,
pub kind: MessageType,
pub content: String,
pub created_at: i64,
pub sig: Option<String>,
pub parent_id: Option<MessageId>,
pub parent_author: Option<AgentPubkey>,
pub reaction: Option<String>,
}Fields§
§message_id: MessageId§channel: ChannelId§seq: Seq§kind: MessageType§content: String§created_at: i64§sig: Option<String>Detached Ed25519 signature over the canonical post content,
base64url-no-pad. Present only for SignedPost/SignedReply.
parent_id: Option<MessageId>For SignedReply: the post being replied to / reacted to.
For SignedReply: the author of the referenced post.
reaction: Option<String>For a reaction (a SignedReply with a short token, e.g. “like”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
Blanket Implementations§
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