pub enum Message {
Rendered(Box<Notification>),
Localizable(Box<Localizable>),
}Expand description
What a notification says, and who decides.
Variants§
Rendered(Box<Notification>)
Text the caller wrote. Delivered as given, in every channel, to every device — the path a single-language venture uses and the one that existed before localisation.
Localizable(Box<Localizable>)
A message id in the venture’s catalog, rendered per recipient at delivery.
Trait Implementations§
Source§impl From<Localizable> for Message
impl From<Localizable> for Message
Source§fn from(localizable: Localizable) -> Self
fn from(localizable: Localizable) -> Self
Converts to this type from the input type.
Source§impl From<Notification> for Message
impl From<Notification> for Message
Source§fn from(notification: Notification) -> Self
fn from(notification: Notification) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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