The single mutation point for the credentials.
(&mut self, authentication: Authentication)
| 91 | |
| 92 | /// The single mutation point for the credentials. |
| 93 | pub fn set_authentication(&mut self, authentication: Authentication) { |
| 94 | self.gql_client = build_gql_api_client(authentication.token(), self.api_url.clone()); |
| 95 | self.authentication = authentication; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | fn build_gql_api_client(token: Option<&str>, api_url: String) -> GQLClient { |
no test coverage detected