pub struct Activity {
pub time: String,
pub name: String,
pub message: String,
pub accent: usize,
pub to: Option<(String, usize)>,
pub harness: Option<HarnessId>,
}Expand description
One line of the activity feed. Persisted so a reload keeps the history.
Fields§
§time: StringLocal wall-clock “HH:MM” when it happened.
name: String§message: String§accent: usize§to: Option<(String, usize)>Recipient of a mail entry (name → to) and their color.
harness: Option<HarnessId>Harness this line is about; the feed reads its current name and color.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Activity
impl<'de> Deserialize<'de> for Activity
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 Forget for Activity
impl Freeze for Activity
impl Move for Activity
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnsafeUnpin for Activity
impl UnwindSafe for Activity
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