Struct dropbox_sdk::default_client::UserAuthDefaultClient
source · [−]pub struct UserAuthDefaultClient { /* private fields */ }
This is supported on crate feature
default_client
only.Expand description
Default HTTP client using User authorization.
Implementations
sourceimpl UserAuthDefaultClient
impl UserAuthDefaultClient
sourcepub fn new(auth: Authorization) -> Self
pub fn new(auth: Authorization) -> Self
Create a new client using the given OAuth2 authorization.
sourcepub fn from_token_cache(tokens: Arc<TokenCache>) -> Self
pub fn from_token_cache(tokens: Arc<TokenCache>) -> Self
Create a new client from a TokenCache
, which lets you share the same tokens between
multiple clients.
sourcepub fn set_path_root(&mut self, path_root: &PathRoot)
pub fn set_path_root(&mut self, path_root: &PathRoot)
Set a root which all subsequent paths are evaluated relative to.
The default, if this function is not called, is to behave as if it was called with
PathRoot::Home
.
See https://www.dropbox.com/developers/reference/path-root-header-modes for more information.
Trait Implementations
sourceimpl HttpClient for UserAuthDefaultClient
impl HttpClient for UserAuthDefaultClient
impl UserAuthClient for UserAuthDefaultClient
Auto Trait Implementations
impl RefUnwindSafe for UserAuthDefaultClient
impl Send for UserAuthDefaultClient
impl Sync for UserAuthDefaultClient
impl Unpin for UserAuthDefaultClient
impl UnwindSafe for UserAuthDefaultClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more