[][src]Trait tbot::types::parameters::ImplicitChatId

pub trait ImplicitChatId<'a>: Into<ChatId<'a>> { }

Allows certian types to be turned into ChatId implicitly.

Implicit turning is safe for chat ID wrappers. However, turning primitives into ChatId implicitly is not safe, as the primitive might have a different meaning. Because of that, we require to turn primitives into ChatId explicitly.


impl<'_> ImplicitChatId<'_> for tbot::types::chat::Id[src]

impl<'_> ImplicitChatId<'_> for tbot::types::user::Id[src]

impl<'a> ImplicitChatId<'a> for ChatId<'a>[src]

Loading content...