pub struct TeamMessage {
pub from: String,
pub to: String,
pub content: String,
pub task_id: Option<String>,
pub timestamp: i64,
}Expand description
A message passed between team members.
Fields§
§from: StringSender member ID.
to: StringRecipient member ID.
content: StringMessage content.
task_id: Option<String>Optional task ID this message relates to.
timestamp: i64Timestamp (Unix epoch seconds).
Trait Implementations§
Source§impl Clone for TeamMessage
impl Clone for TeamMessage
Source§fn clone(&self) -> TeamMessage
fn clone(&self) -> TeamMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TeamMessage
impl RefUnwindSafe for TeamMessage
impl Send for TeamMessage
impl Sync for TeamMessage
impl Unpin for TeamMessage
impl UnsafeUnpin for TeamMessage
impl UnwindSafe for TeamMessage
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