Struct rnotifylib::message::Message
source · pub struct Message { /* private fields */ }Expand description
A Message represents a MessageDestination independent way to send a message to a platform.
However - not every destination will support every type of formatting, or may have length / size
restrictions - so be aware of this. Destinations should do their best to receive the message, even if they
have to ignore formatting to do so.
To construct a Message, consider using MessageBuilder or MessageDetailBuilder to make
your life easier.
Parts of a Message
- Level - Severity of message
- Title - Optional, short snappy summary of what the message is about
- MessageDetail - Structured body text supporting formatting
- Component - Optional, indicating what the message is about, e.g a program or server.
- Author - Who created the message
- Timestamp - The unix timestamp in milliseconds, showing when the message was sent.