pub struct FailResponse {
pub success: Option<bool>,
pub error: Option<String>,
}
Fields§
§success: Option<bool>
If the response is successful or not
error: Option<String>
The error message
Implementations§
Source§impl FailResponse
impl FailResponse
pub fn new() -> FailResponse
Trait Implementations§
Source§impl Clone for FailResponse
impl Clone for FailResponse
Source§fn clone(&self) -> FailResponse
fn clone(&self) -> FailResponse
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 moreSource§impl Debug for FailResponse
impl Debug for FailResponse
Source§impl<'de> Deserialize<'de> for FailResponse
impl<'de> Deserialize<'de> for FailResponse
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 FailResponse
impl PartialEq for FailResponse
Source§impl Serialize for FailResponse
impl Serialize for FailResponse
impl StructuralPartialEq for FailResponse
Auto Trait Implementations§
impl Freeze for FailResponse
impl RefUnwindSafe for FailResponse
impl Send for FailResponse
impl Sync for FailResponse
impl Unpin for FailResponse
impl UnwindSafe for FailResponse
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