pub struct Authorization<C>where
C: HttpClient,{ /* private fields */ }Expand description
Authorization token and related information obtained from authorize_account.
The token is valid for no more than 24 hours.
Implementations§
Source§impl<C> Authorization<C>where
C: HttpClient,
impl<C> Authorization<C>where
C: HttpClient,
The authorization token used for Backblaze requests.
Sourcepub fn account_id(&self) -> &str
pub fn account_id(&self) -> &str
The ID for the account.
Sourcepub fn capabilities(&self) -> &Capabilities
pub fn capabilities(&self) -> &Capabilities
The capabilities granted to this auth token.
Sourcepub fn recommended_part_size(&self) -> u64
pub fn recommended_part_size(&self) -> u64
The recommended size in bytes for each part of a large file.
Sourcepub fn minimum_part_size(&self) -> u64
pub fn minimum_part_size(&self) -> u64
The smallest possible size in bytes of a part of a large file, except the final part.
pub fn has_capability(&self, cap: Capability) -> bool
Trait Implementations§
Source§impl<C> Debug for Authorization<C>where
C: HttpClient + Debug,
impl<C> Debug for Authorization<C>where
C: HttpClient + Debug,
Source§impl<'a, C> From<&'a mut Authorization<C>> for DownloadAuth<'a, C>where
C: HttpClient,
impl<'a, C> From<&'a mut Authorization<C>> for DownloadAuth<'a, C>where
C: HttpClient,
Source§fn from(auth: &'a mut Authorization<C>) -> Self
fn from(auth: &'a mut Authorization<C>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<C> Freeze for Authorization<C>where
C: Freeze,
impl<C> RefUnwindSafe for Authorization<C>where
C: RefUnwindSafe,
impl<C> Send for Authorization<C>where
C: Send,
impl<C> Sync for Authorization<C>where
C: Sync,
impl<C> Unpin for Authorization<C>where
C: Unpin,
impl<C> UnsafeUnpin for Authorization<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for Authorization<C>where
C: UnwindSafe,
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