pub struct APIConfig {
pub base_url: String,
pub token: Option<Arc<dyn ExpirableToken>>,
}
Fields§
§base_url: String
§token: Option<Arc<dyn ExpirableToken>>
Implementations§
Source§impl APIConfig
impl APIConfig
pub fn with_token<T: ExpirableToken + 'static>(token: T) -> Self
pub fn with_base_url(base_url: &str) -> Self
pub fn new<T: ExpirableToken + 'static>( base_url: &str, token: T, ) -> SharedAPIConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for APIConfig
impl !RefUnwindSafe for APIConfig
impl Send for APIConfig
impl Sync for APIConfig
impl Unpin for APIConfig
impl !UnwindSafe for APIConfig
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