Struct icu_provider::prelude::DataRequest
source · [−]pub struct DataRequest<'a> {
pub locale: &'a DataLocale,
pub metadata: DataRequestMetadata,
}
Expand description
The request type passed into all data provider implementations.
Fields
locale: &'a DataLocale
The locale for which to load data.
If locale fallback is enabled, the resulting data may be from a different locale than the one requested here.
metadata: DataRequestMetadata
Metadata that may affect the behavior of the data provider.
Trait Implementations
sourceimpl<'a> Clone for DataRequest<'a>
impl<'a> Clone for DataRequest<'a>
sourcefn clone(&self) -> DataRequest<'a>
fn clone(&self) -> DataRequest<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for DataRequest<'a>
impl<'a> Debug for DataRequest<'a>
sourceimpl<'a> Default for DataRequest<'a>
impl<'a> Default for DataRequest<'a>
sourcefn default() -> DataRequest<'a>
fn default() -> DataRequest<'a>
Returns the “default value” for a type. Read more
sourceimpl Display for DataRequest<'_>
impl Display for DataRequest<'_>
sourceimpl<'a> PartialEq<DataRequest<'a>> for DataRequest<'a>
impl<'a> PartialEq<DataRequest<'a>> for DataRequest<'a>
sourcefn eq(&self, other: &DataRequest<'a>) -> bool
fn eq(&self, other: &DataRequest<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DataRequest<'a>) -> bool
fn ne(&self, other: &DataRequest<'a>) -> bool
This method tests for !=
.
impl<'a> Copy for DataRequest<'a>
impl<'a> Eq for DataRequest<'a>
impl<'a> StructuralEq for DataRequest<'a>
impl<'a> StructuralPartialEq for DataRequest<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for DataRequest<'a>
impl<'a> Send for DataRequest<'a>
impl<'a> Sync for DataRequest<'a>
impl<'a> Unpin for DataRequest<'a>
impl<'a> UnwindSafe for DataRequest<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Separable for T where
T: Display,
impl<T> Separable for T where
T: Display,
sourcefn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
Adds separators according to the given SeparatorPolicy
. Read more
sourcefn separate_with_commas(&self) -> String
fn separate_with_commas(&self) -> String
Inserts a comma every three digits from the right. Read more
sourcefn separate_with_spaces(&self) -> String
fn separate_with_spaces(&self) -> String
Inserts a space every three digits from the right. Read more
sourcefn separate_with_dots(&self) -> String
fn separate_with_dots(&self) -> String
Inserts a period every three digits from the right. Read more
sourcefn separate_with_underscores(&self) -> String
fn separate_with_underscores(&self) -> String
Inserts an underscore every three digits from the right. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more