pub struct StringApiResponse {
pub code: Option<i32>,
pub data: Option<Option<String>>,
pub error: Option<Option<String>>,
}Fields§
§code: Option<i32>状态码
data: Option<Option<String>>响应数据
error: Option<Option<String>>错误信息
Implementations§
Source§impl StringApiResponse
impl StringApiResponse
pub fn new() -> StringApiResponse
Trait Implementations§
Source§impl Clone for StringApiResponse
impl Clone for StringApiResponse
Source§fn clone(&self) -> StringApiResponse
fn clone(&self) -> StringApiResponse
Returns a copy 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 Debug for StringApiResponse
impl Debug for StringApiResponse
Source§impl Default for StringApiResponse
impl Default for StringApiResponse
Source§fn default() -> StringApiResponse
fn default() -> StringApiResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StringApiResponse
impl<'de> Deserialize<'de> for StringApiResponse
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 PartialEq for StringApiResponse
impl PartialEq for StringApiResponse
Source§impl Serialize for StringApiResponse
impl Serialize for StringApiResponse
impl StructuralPartialEq for StringApiResponse
Auto Trait Implementations§
impl Freeze for StringApiResponse
impl RefUnwindSafe for StringApiResponse
impl Send for StringApiResponse
impl Sync for StringApiResponse
impl Unpin for StringApiResponse
impl UnwindSafe for StringApiResponse
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