pub struct ApiData<T> {
pub result: ResultType,
pub response: ResponseType,
pub data: T,
}
Expand description
API response for a single entity containing an ApiObject
in the data
field.
Fields§
§result: ResultType
§response: ResponseType
§data: T
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for ApiData<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ApiData<T>where
T: Deserialize<'de>,
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<T> FromResponse for ApiData<T>where
T: DeserializeOwned,
impl<T> FromResponse for ApiData<T>where
T: DeserializeOwned,
Auto Trait Implementations§
impl<T> Freeze for ApiData<T>where
T: Freeze,
impl<T> RefUnwindSafe for ApiData<T>where
T: RefUnwindSafe,
impl<T> Send for ApiData<T>where
T: Send,
impl<T> Sync for ApiData<T>where
T: Sync,
impl<T> Unpin for ApiData<T>where
T: Unpin,
impl<T> UnwindSafe for ApiData<T>where
T: UnwindSafe,
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