Struct dropbox_sdk::default_client::TeamAuthDefaultClient
source · [−]pub struct TeamAuthDefaultClient { /* private fields */ }
This is supported on crate feature
default_client
only.Expand description
Default HTTP client using Team authorization.
Implementations
sourceimpl TeamAuthDefaultClient
impl TeamAuthDefaultClient
sourcepub fn new(tokens: impl Into<Arc<TokenCache>>) -> Self
pub fn new(tokens: impl Into<Arc<TokenCache>>) -> Self
Create a new client using the given OAuth2 token, with no user/admin context selected.
sourcepub fn select(&mut self, team_select: Option<TeamSelect>)
pub fn select(&mut self, team_select: Option<TeamSelect>)
Select a user or team context to operate in.
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 TeamAuthDefaultClient
impl HttpClient for TeamAuthDefaultClient
impl TeamAuthClient for TeamAuthDefaultClient
Auto Trait Implementations
impl RefUnwindSafe for TeamAuthDefaultClient
impl Send for TeamAuthDefaultClient
impl Sync for TeamAuthDefaultClient
impl Unpin for TeamAuthDefaultClient
impl UnwindSafe for TeamAuthDefaultClient
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