pub struct SignedMessage {
pub from: String,
pub to: String,
pub text: String,
pub ts: u64,
pub msg_id: String,
pub kind: MessageKind,
pub task_id: Option<String>,
pub status: Option<TaskStatus>,
pub in_reply_to: Option<String>,
pub sig: String,
}Expand description
What travels over the bus. The bus treats it as an opaque payload.
Fields§
§from: String§to: String§text: String§ts: u64§msg_id: String§kind: MessageKind§task_id: Option<String>Task-tracking metadata (all optional; absent on a plain chat turn). See
docs/TASKS.md.
status: Option<TaskStatus>§in_reply_to: Option<String>§sig: StringImplementations§
Trait Implementations§
Source§impl Clone for SignedMessage
impl Clone for SignedMessage
Source§fn clone(&self) -> SignedMessage
fn clone(&self) -> SignedMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignedMessage
impl Debug for SignedMessage
Source§impl<'de> Deserialize<'de> for SignedMessage
impl<'de> Deserialize<'de> for SignedMessage
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 SignedMessage
Source§impl PartialEq for SignedMessage
impl PartialEq for SignedMessage
Source§impl Serialize for SignedMessage
impl Serialize for SignedMessage
impl StructuralPartialEq for SignedMessage
Auto Trait Implementations§
impl Freeze for SignedMessage
impl RefUnwindSafe for SignedMessage
impl Send for SignedMessage
impl Sync for SignedMessage
impl Unpin for SignedMessage
impl UnsafeUnpin for SignedMessage
impl UnwindSafe for SignedMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.