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

Note: This function is currently inoperable. For more details, see https://github.com/unicode-org/icu4x/issues/753

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Clone this trait object reference, returning a boxed trait object.

Return this boxed trait object as Box<dyn Any>. Read more

Return this trait object reference as &dyn Any. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.