pub struct Response(/* private fields */);Expand description
返回响应
Implementations§
Source§impl Response
impl Response
Sourcepub fn get_data_data(self) -> JsonValue
pub fn get_data_data(self) -> JsonValue
获取业务数据
Sourcepub fn get_data_code(self) -> i32
pub fn get_data_code(self) -> i32
获取业务反馈编号
Sourcepub fn get_data_msg(self) -> String
pub fn get_data_msg(self) -> String
获取业务提示消息
pub fn into(self) -> (&'static str, JsonValue)
Sourcepub fn download_delete_dir(filename: &str) -> Self
pub fn download_delete_dir(filename: &str) -> Self
下载并删除文件和所在文件夹
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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