pub struct TapisAuthenticator {
pub admin: AdminClient,
pub clients: ClientsClient,
pub health_check: HealthCheckClient,
pub metadata: MetadataClient,
pub profiles: ProfilesClient,
pub tokens: TokensClient,
/* private fields */
}Fields§
§admin: AdminClient§clients: ClientsClient§health_check: HealthCheckClient§metadata: MetadataClient§profiles: ProfilesClient§tokens: TokensClientImplementations§
Source§impl TapisAuthenticator
impl TapisAuthenticator
pub fn new( base_url: &str, jwt_token: Option<&str>, ) -> Result<Self, Box<dyn Error>>
Sourcepub fn with_token_provider(
base_url: &str,
jwt_token: Option<&str>,
provider: Arc<dyn TokenProvider>,
) -> Result<Self, Box<dyn Error>>
pub fn with_token_provider( base_url: &str, jwt_token: Option<&str>, provider: Arc<dyn TokenProvider>, ) -> Result<Self, Box<dyn Error>>
Create a client with a TokenProvider for automatic token refresh.
RefreshMiddleware is added to the middleware chain and will call
provider.get_token() transparently whenever the JWT is about to expire.
pub fn config(&self) -> &Configuration
Trait Implementations§
Source§impl Clone for TapisAuthenticator
impl Clone for TapisAuthenticator
Source§fn clone(&self) -> TapisAuthenticator
fn clone(&self) -> TapisAuthenticator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TapisAuthenticator
impl !RefUnwindSafe for TapisAuthenticator
impl Send for TapisAuthenticator
impl Sync for TapisAuthenticator
impl Unpin for TapisAuthenticator
impl UnsafeUnpin for TapisAuthenticator
impl !UnwindSafe for TapisAuthenticator
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