pub struct NoticeMsg {
pub types: Types,
pub msg: JsonValue,
pub timestamp: i64,
pub channel: String,
pub user: String,
pub org: String,
pub admin: String,
}Fields§
§types: Types§msg: JsonValue§timestamp: i64§channel: String§user: String§org: String§admin: StringImplementations§
Source§impl NoticeMsg
impl NoticeMsg
pub fn json(&mut self) -> JsonValue
pub fn to_all(channel: &str, msg: JsonValue)
pub fn to_org(channel: &str, msg: JsonValue, org: &str)
pub fn to_user(channel: &str, msg: JsonValue, user: &str)
pub fn to_admin(channel: &str, msg: JsonValue, admin: &str)
pub fn to_channel(channel: &str, msg: JsonValue)
Auto Trait Implementations§
impl Freeze for NoticeMsg
impl RefUnwindSafe for NoticeMsg
impl Send for NoticeMsg
impl Sync for NoticeMsg
impl Unpin for NoticeMsg
impl UnwindSafe for NoticeMsg
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