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

pub trait ImplicitChatId: Into<ChatId> { }

Allows certain 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 ChatId[src]

impl ImplicitChatId for tbot::types::chat::Id[src]

impl ImplicitChatId for tbot::types::user::Id[src]

Loading content...