Struct icu_provider::prelude::DataResponse[][src]

pub struct DataResponse<'d, T: ?Sized> where
    T: ToOwned,
    <T as ToOwned>::Owned: Debug
{ pub metadata: DataResponseMetadata, pub payload: DataPayload<'d, T>, }

A response object containing an object as payload and metadata about it.

Fields

metadata: DataResponseMetadata

Metadata about the returned object.

payload: DataPayload<'d, T>

The object itself; None if it was not loaded.

Trait Implementations

impl<'d, T: Clone + ?Sized> Clone for DataResponse<'d, T> where
    T: ToOwned,
    <T as ToOwned>::Owned: Debug
[src]

impl<'d, T: Debug + ?Sized> Debug for DataResponse<'d, T> where
    T: ToOwned,
    <T as ToOwned>::Owned: Debug
[src]

Auto Trait Implementations

impl<'d, T: ?Sized> RefUnwindSafe for DataResponse<'d, T> where
    T: RefUnwindSafe,
    <T as ToOwned>::Owned: RefUnwindSafe

impl<'d, T: ?Sized> Send for DataResponse<'d, T> where
    T: Sync,
    <T as ToOwned>::Owned: Send

impl<'d, T: ?Sized> Sync for DataResponse<'d, T> where
    T: Sync,
    <T as ToOwned>::Owned: Sync

impl<'d, T: ?Sized> Unpin for DataResponse<'d, T> where
    <T as ToOwned>::Owned: Unpin

impl<'d, T: ?Sized> UnwindSafe for DataResponse<'d, T> where
    T: RefUnwindSafe,
    <T as ToOwned>::Owned: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> ErasedDataStruct for T where
    T: Clone + Debug + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.