Struct grammers_client::client::client::Config
source · pub struct Config {
pub session: Session,
pub api_id: i32,
pub api_hash: String,
pub params: InitParams,
}
Expand description
Configuration required to create a Client
instance.
Fields§
§session: Session
Session storage where data should persist, such as authorization key, server address, and other required information by the client.
api_id: i32
Developer’s API ID, required to interact with the Telegram’s API.
You may obtain your own in https://my.telegram.org/auth.
api_hash: String
Developer’s API hash, required to interact with Telegram’s API.
You may obtain your own in https://my.telegram.org/auth.
params: InitParams
Additional initialization parameters that can have sane defaults.
Auto Trait Implementations§
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl !UnwindSafe for Config
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