[−][src]Struct carapax_i18n::Locale
A locale
Methods
impl Locale
[src]
Trait Implementations
impl<'_> TryFrom<&'_ CallbackQuery> for Locale
[src]
type Error = LocaleNotFound
The type returned in the event of a conversion error.
fn try_from(callback_query: &CallbackQuery) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ ChosenInlineResult> for Locale
[src]
type Error = LocaleNotFound
The type returned in the event of a conversion error.
fn try_from(
chosen_inline_result: &ChosenInlineResult
) -> Result<Self, Self::Error>
[src]
chosen_inline_result: &ChosenInlineResult
) -> Result<Self, Self::Error>
impl<'_> TryFrom<&'_ Command> for Locale
[src]
type Error = LocaleNotFound
The type returned in the event of a conversion error.
fn try_from(command: &Command) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ InlineQuery> for Locale
[src]
type Error = LocaleNotFound
The type returned in the event of a conversion error.
fn try_from(inline_query: &InlineQuery) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ Message> for Locale
[src]
type Error = LocaleNotFound
The type returned in the event of a conversion error.
fn try_from(message: &Message) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ PreCheckoutQuery> for Locale
[src]
type Error = LocaleNotFound
The type returned in the event of a conversion error.
fn try_from(pre_checkout_query: &PreCheckoutQuery) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ ShippingQuery> for Locale
[src]
type Error = LocaleNotFound
The type returned in the event of a conversion error.
fn try_from(shipping_query: &ShippingQuery) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ Update> for Locale
[src]
type Error = LocaleNotFound
The type returned in the event of a conversion error.
fn try_from(update: &Update) -> Result<Self, Self::Error>
[src]
impl<'_> TryFrom<&'_ User> for Locale
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,