pub struct OAuth2Route {
pub cache: TokenCache,
pub upstream: String,
}Expand description
An OAuth2 route entry: token cache + upstream URL.
Fields§
§cache: TokenCacheToken cache for automatic refresh
upstream: StringUpstream URL (e.g., “https://api.example.com”)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OAuth2Route
impl !RefUnwindSafe for OAuth2Route
impl Send for OAuth2Route
impl Sync for OAuth2Route
impl Unpin for OAuth2Route
impl UnsafeUnpin for OAuth2Route
impl !UnwindSafe for OAuth2Route
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