pub struct ResponseResult {
pub success: bool,
pub msg: String,
}Fields§
§success: bool是否成功
msg: String执行结果或错误信息
Implementations§
Source§impl ResponseResult
impl ResponseResult
pub fn from_value(data: &Value) -> Result<Self, Error>
Trait Implementations§
Source§impl Clone for ResponseResult
impl Clone for ResponseResult
Source§fn clone(&self) -> ResponseResult
fn clone(&self) -> ResponseResult
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 moreAuto Trait Implementations§
impl Freeze for ResponseResult
impl RefUnwindSafe for ResponseResult
impl Send for ResponseResult
impl Sync for ResponseResult
impl Unpin for ResponseResult
impl UnsafeUnpin for ResponseResult
impl UnwindSafe for ResponseResult
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