pub struct KV<T> {
pub key: String,
pub value: T,
}
Fields§
§key: String
§value: T
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for KV<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for KV<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
Auto Trait Implementations§
impl<T> Freeze for KV<T>where
T: Freeze,
impl<T> RefUnwindSafe for KV<T>where
T: RefUnwindSafe,
impl<T> Send for KV<T>where
T: Send,
impl<T> Sync for KV<T>where
T: Sync,
impl<T> Unpin for KV<T>where
T: Unpin,
impl<T> UnwindSafe for KV<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<Data> ApiSuccessResponse for Data
impl<Data> ApiSuccessResponse for Data
fn api_response<Meta>(self, meta: Option<Meta>) -> ApiResponse<Self, Meta>
fn api_response_without_meta<Meta>(self) -> ApiResponse<Self, Meta>
fn api_response_with_meta<Meta>(self, meta: Meta) -> ApiResponse<Self, Meta>
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