[][src]Struct coolq_sdk_rust::events::PrivateMessageEvent

pub struct PrivateMessageEvent {
    pub sub_type: i32,
    pub msg: Message,
    pub font: i32,
    pub user: User,
}

Fields

sub_type: i32msg: Messagefont: i32user: User

Implementations

impl PrivateMessageEvent[src]

pub fn new(
    sub_type: i32,
    msg_id: i32,
    user_id: i64,
    msg: *const c_char,
    font: i32
) -> Self
[src]

pub fn get_message(&self) -> &Message[src]

pub fn reply(&self, msg: impl ToString) -> Result<i32>[src]

pub fn get_sub_type(&self) -> PrivateMessageType[src]

Trait Implementations

impl Debug for PrivateMessageEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.