linkmobility/client.rs
1use crate::account::Account;
2
3pub struct Client {
4 reqw_client: reqwest::Client,
5 account: Account,
6}
7
8impl Client {
9 pub fn new(account: Account) -> Self {
10 Self {
11 account,
12 reqw_client: reqwest::Client::new(),
13 }
14 }
15
16 pub(crate) fn reqw_client(&self) -> &reqwest::Client {
17 &self.reqw_client
18 }
19
20 pub(crate) fn account(&self) -> &Account {
21 &self.account
22 }
23}