pub struct ClientIds;Implementations§
Source§impl ClientIds
impl ClientIds
pub fn from_cloud(peer_id: &str, ws_id: &str) -> String
pub fn from_local(ws_id: &str) -> String
pub fn from_telegram(bot_id: &str, chat_id: i64) -> String
pub fn is_cloud(client_id: &str) -> bool
pub fn is_local(client_id: &str) -> bool
pub fn is_telegram(client_id: &str) -> bool
pub fn is_messaging(client_id: &str) -> bool
pub fn to_telegram_bot_id(client_id: &str) -> Option<i64>
pub fn to_telegram_chat_id(client_id: &str) -> Option<i64>
pub fn to_peer_id(client_id: &str) -> Option<String>
pub fn to_device_id(client_id: &str) -> Option<String>
Auto Trait Implementations§
impl Freeze for ClientIds
impl RefUnwindSafe for ClientIds
impl Send for ClientIds
impl Sync for ClientIds
impl Unpin for ClientIds
impl UnsafeUnpin for ClientIds
impl UnwindSafe for ClientIds
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more