pub struct SendRobotMessageResponse {
pub data: SendRobotMessage,
pub errcode: i32,
pub errmsg: Option<String>,
}
Fields§
§data: SendRobotMessage
§errcode: i32
§errmsg: Option<String>
Implementations§
Source§impl SendRobotMessageResponse
impl SendRobotMessageResponse
pub fn is_ok(&self) -> bool
pub fn data(self) -> Result<SendRobotMessage, ServerError>
pub fn ignore(self) -> Result<(), ServerError>
Trait Implementations§
Source§impl Debug for SendRobotMessageResponse
impl Debug for SendRobotMessageResponse
Source§impl<'de> Deserialize<'de> for SendRobotMessageResponse
impl<'de> Deserialize<'de> for SendRobotMessageResponse
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
Auto Trait Implementations§
impl Freeze for SendRobotMessageResponse
impl RefUnwindSafe for SendRobotMessageResponse
impl Send for SendRobotMessageResponse
impl Sync for SendRobotMessageResponse
impl Unpin for SendRobotMessageResponse
impl UnwindSafe for SendRobotMessageResponse
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