[][src]Struct carapax_i18n::Locale

pub struct Locale(_);

A locale

Methods

impl Locale[src]

pub fn new<L>(locale: L) -> Self where
    L: Into<String>, 
[src]

Creates a new locale

Arguments

  • locale - Locale string

Trait Implementations

impl<'_> TryFrom<&'_ CallbackQuery> for Locale[src]

type Error = LocaleNotFound

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ ChosenInlineResult> for Locale[src]

type Error = LocaleNotFound

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Command> for Locale[src]

type Error = LocaleNotFound

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ InlineQuery> for Locale[src]

type Error = LocaleNotFound

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Message> for Locale[src]

type Error = LocaleNotFound

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ PreCheckoutQuery> for Locale[src]

type Error = LocaleNotFound

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ ShippingQuery> for Locale[src]

type Error = LocaleNotFound

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ Update> for Locale[src]

type Error = LocaleNotFound

The type returned in the event of a conversion error.

impl<'_> TryFrom<&'_ User> for Locale[src]

type Error = LocaleNotFound

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Locale

impl Send for Locale

impl Sync for Locale

impl Unpin for Locale

impl UnwindSafe for Locale

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> From<T> for T[src]

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

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.