A copy of this client, authenticating differently.
(&self, authentication: Authentication)
| 75 | |
| 76 | /// A copy of this client, authenticating differently. |
| 77 | pub fn with_authentication(&self, authentication: Authentication) -> Self { |
| 78 | Self::new(authentication, self.api_url.clone()) |
| 79 | } |
| 80 | |
| 81 | pub fn token(&self) -> Option<&str> { |
| 82 | self.authentication.token() |