Returns a client that uses `token` for authentication, regardless of the token this client was built with.
(&self, token: String)
| 38 | /// Returns a client that uses `token` for authentication, regardless of |
| 39 | /// the token this client was built with. |
| 40 | pub fn with_token(&self, token: String) -> Self { |
| 41 | Self::new(Some(token), self.api_url.clone()) |
| 42 | } |
| 43 | |
| 44 | /// The token this client currently authenticates with, if any. |
| 45 | /// |