pub struct CodeMsg {
pub code: i32,
pub msg: String,
}
Fields§
§code: i32
§msg: String
Implementations§
Trait Implementations§
Source§impl From<ProtobufError> for CodeMsg
impl From<ProtobufError> for CodeMsg
Source§fn from(e: ProtobufError) -> CodeMsg
fn from(e: ProtobufError) -> CodeMsg
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodeMsg
impl RefUnwindSafe for CodeMsg
impl Send for CodeMsg
impl Sync for CodeMsg
impl Unpin for CodeMsg
impl UnwindSafe for CodeMsg
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