Struct icu_provider::prelude::DataResponse [−][src]
pub struct DataResponse<'data, M> where
M: DataMarker<'data>, { pub metadata: DataResponseMetadata, pub payload: Option<DataPayload<'data, M>>, }
Expand description
A response object containing an object as payload and metadata about it.
Fields
metadata: DataResponseMetadata
Metadata about the returned object.
payload: Option<DataPayload<'data, M>>
The object itself; None if it was not loaded.
Implementations
Takes ownership of the underlying payload. Error if not present.
Trait Implementations
impl<'data, M> Clone for DataResponse<'data, M> where
M: DataMarker<'data>,
for<'a> <M::Yokeable as Yokeable<'a>>::Output: Clone,
impl<'data, M> Clone for DataResponse<'data, M> where
M: DataMarker<'data>,
for<'a> <M::Yokeable as Yokeable<'a>>::Output: Clone,
impl<'data, M> Debug for DataResponse<'data, M> where
M: DataMarker<'data>,
for<'a> &'a <M::Yokeable as Yokeable<'a>>::Output: Debug,
impl<'data, M> Debug for DataResponse<'data, M> where
M: DataMarker<'data>,
for<'a> &'a <M::Yokeable as Yokeable<'a>>::Output: Debug,
impl<'data, M> TryFrom<DataResponse<'data, M>> for DataPayload<'data, M> where
M: DataMarker<'data>,
impl<'data, M> TryFrom<DataResponse<'data, M>> for DataPayload<'data, M> where
M: DataMarker<'data>,
Auto Trait Implementations
impl<'data, M> !RefUnwindSafe for DataResponse<'data, M>
impl<'data, M> !Send for DataResponse<'data, M>
impl<'data, M> !Sync for DataResponse<'data, M>
impl<'data, M> Unpin for DataResponse<'data, M> where
<M as DataMarker<'data>>::Yokeable: Unpin,
impl<'data, M> UnwindSafe for DataResponse<'data, M> where
<M as DataMarker<'data>>::Cart: RefUnwindSafe,
<M as DataMarker<'data>>::Yokeable: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Clone this trait object reference, returning a boxed trait object.