Struct poem::i18n::I18NResources
source[−]pub struct I18NResources { /* private fields */ }
This is supported on crate feature
i18n
only.Expand description
A resource for translating natural language.
Implementations
Create a resources builder.
pub fn negotiate_languages(
&self,
languages: &[impl AsRef<LanguageIdentifier>]
) -> I18NBundle
pub fn negotiate_languages(
&self,
languages: &[impl AsRef<LanguageIdentifier>]
) -> I18NBundle
Negotiate the language according to the input language id list and
return the I18NBundle
.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for I18NResources
impl Send for I18NResources
impl Sync for I18NResources
impl Unpin for I18NResources
impl !UnwindSafe for I18NResources
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more