pub struct B2AuthData {
pub account_id: String,
pub api_info: B2AuthDataApiInfo,
pub authorization_token: String,
pub application_key_expiration_timestamp: Option<u64>,
}Fields§
§account_id: StringThe identifier for the account.
api_info: B2AuthDataApiInfoA data structure that groups the information you need by API suite.
An authorization token to use with all calls, other than b2_authorize_account, that need an Authorization header. This authorization token is valid for at most 24 hours.
application_key_expiration_timestamp: Option<u64>Expiration timestamp for the application key.
Trait Implementations§
Source§impl Clone for B2AuthData
impl Clone for B2AuthData
Source§fn clone(&self) -> B2AuthData
fn clone(&self) -> B2AuthData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for B2AuthData
impl Debug for B2AuthData
Source§impl<'de> Deserialize<'de> for B2AuthData
impl<'de> Deserialize<'de> for B2AuthData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for B2AuthData
impl RefUnwindSafe for B2AuthData
impl Send for B2AuthData
impl Sync for B2AuthData
impl Unpin for B2AuthData
impl UnwindSafe for B2AuthData
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