pub enum RobotMessage {
Private {
message: RobotPrivateMessage,
send_result_cb: OptionSendMessageCallback,
},
Group {
message: RobotGroupMessage,
send_result_cb: OptionSendMessageCallback,
},
}Variants§
Implementations§
Source§impl RobotMessage
impl RobotMessage
pub fn with_cb<T: Into<OptionSendMessageCallback>>(self, cb: T) -> Self
Trait Implementations§
Source§impl Clone for RobotMessage
impl Clone for RobotMessage
Source§fn clone(&self) -> RobotMessage
fn clone(&self) -> RobotMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for RobotMessage
impl<'de> Deserialize<'de> for RobotMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<RobotGroupMessage> for RobotMessage
impl From<RobotGroupMessage> for RobotMessage
Source§fn from(message: RobotGroupMessage) -> Self
fn from(message: RobotGroupMessage) -> Self
Converts to this type from the input type.
Source§impl From<RobotPrivateMessage> for RobotMessage
impl From<RobotPrivateMessage> for RobotMessage
Source§fn from(message: RobotPrivateMessage) -> Self
fn from(message: RobotPrivateMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RobotMessage
impl !RefUnwindSafe for RobotMessage
impl Send for RobotMessage
impl Sync for RobotMessage
impl Unpin for RobotMessage
impl UnsafeUnpin for RobotMessage
impl !UnwindSafe for RobotMessage
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