pub struct Custom {
pub tag: String,
pub text: String,
pub json: JsonObject,
}Expand description
Application defined message with a string tag and arbitrary JSON payload.
Fields§
§tag: String§text: String§json: JsonObjectImplementations§
Trait Implementations§
Source§impl MessageLike for Custom
impl MessageLike for Custom
type Kind = RichKind
fn into_builder_parts(self) -> (ComposedMessage, RichKind)
Auto Trait Implementations§
impl Freeze for Custom
impl RefUnwindSafe for Custom
impl Send for Custom
impl Sync for Custom
impl Unpin for Custom
impl UnsafeUnpin for Custom
impl UnwindSafe for Custom
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