pub struct TapisApps {
pub applications: ApplicationsClient,
pub general: GeneralClient,
pub permissions: PermissionsClient,
pub sharing: SharingClient,
/* private fields */
}Fields§
§applications: ApplicationsClient§general: GeneralClient§permissions: PermissionsClient§sharing: SharingClientImplementations§
Source§impl TapisApps
impl TapisApps
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§
Auto Trait Implementations§
impl Freeze for TapisApps
impl !RefUnwindSafe for TapisApps
impl Send for TapisApps
impl Sync for TapisApps
impl Unpin for TapisApps
impl UnsafeUnpin for TapisApps
impl !UnwindSafe for TapisApps
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