pub struct Mail {
pub to: HarnessId,
pub from: String,
pub text: String,
pub read: bool,
}Expand description
One message in a harness mailbox. Persisted so a reload loses nothing.
Fields§
§to: HarnessId§from: StringSender’s display name at send time (user for the human or termdenctl
outside a tile).
text: String§read: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Mail
impl<'de> Deserialize<'de> for Mail
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 Mail
impl Freeze for Mail
impl Move for Mail
impl RefUnwindSafe for Mail
impl Send for Mail
impl Sync for Mail
impl Unpin for Mail
impl UnsafeUnpin for Mail
impl UnwindSafe for Mail
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