Struct carbone_sdk_rust::carbone_response::APIResponse
source · pub struct APIResponse {
pub success: bool,
pub data: Option<APIResponseData>,
pub error: Option<String>,
pub code: Option<String>,
}
Fields§
§success: bool
§data: Option<APIResponseData>
§error: Option<String>
§code: Option<String>
Trait Implementations§
source§impl Clone for APIResponse
impl Clone for APIResponse
source§fn clone(&self) -> APIResponse
fn clone(&self) -> APIResponse
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 APIResponse
impl Debug for APIResponse
source§impl<'de> Deserialize<'de> for APIResponse
impl<'de> Deserialize<'de> for APIResponse
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 APIResponse
impl PartialEq for APIResponse
source§fn eq(&self, other: &APIResponse) -> bool
fn eq(&self, other: &APIResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for APIResponse
impl Serialize for APIResponse
impl Eq for APIResponse
impl StructuralEq for APIResponse
impl StructuralPartialEq for APIResponse
Auto Trait Implementations§
impl RefUnwindSafe for APIResponse
impl Send for APIResponse
impl Sync for APIResponse
impl Unpin for APIResponse
impl UnwindSafe for APIResponse
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.