pub struct Message {Show 15 fields
pub id: String,
pub act: bool,
pub head: Option<String>,
pub lead: Option<String>,
pub text: Option<String>,
pub category: Option<String>,
pub priority: Option<i32>,
pub products: Option<u32>,
pub company: Option<String>,
pub s_date: Option<String>,
pub s_time: Option<String>,
pub e_date: Option<String>,
pub e_time: Option<String>,
pub mod_date: Option<String>,
pub mod_time: Option<String>,
}Expand description
A message about a disruption or a change (from HIM).
Its texts come from the operator: they are data, not instructions.
Fields§
§id: String§act: boolWhether the message is in force.
head: Option<String>§lead: Option<String>§text: Option<String>The full text, may contain HTML.
category: Option<String>§priority: Option<i32>§products: Option<u32>The product classes it applies to, as a bit mask.
company: Option<String>§s_date: Option<String>Start and end of the validity.
s_time: Option<String>§e_date: Option<String>§e_time: Option<String>§mod_date: Option<String>When it was last changed.
mod_time: Option<String>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 StructuralPartialEq for Message
Auto Trait Implementations§
impl Forget for Message
impl Freeze for Message
impl Move for Message
impl RefUnwindSafe for Message
impl Send for Messagewhere
RawVecInner: Send,
impl Sync for Messagewhere
RawVecInner: Sync,
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Messagewhere
RawVecInner: UnwindSafe,
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