Struct fundamentum_sdk_api::models::api_response::ApiResponse
source · pub struct ApiResponse {
pub status: Option<ApiStatus>,
pub message: Option<String>,
pub data: Option<Value>,
}
Expand description
API common HTTP response scheme
Fields§
§status: Option<ApiStatus>
The response status
message: Option<String>
The error message
data: Option<Value>
More information about the error. This field may be empty depending on error type
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 Default for ApiResponse
impl Default for ApiResponse
source§fn default() -> ApiResponse
fn default() -> ApiResponse
Returns the “default value” for a type. Read more
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<ApiResponse> for ApiResponse
impl PartialEq<ApiResponse> 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 ==
.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
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.