pub struct Config {
pub oauth2_api_url: String,
pub oauth2_authorize_url: String,
pub api_version: String,
pub max_retry_attempts: u8,
pub chunk_upload_threads: u8,
pub user_agent: String,
/* private fields */
}Expand description
Configuration structure for the Box API.
Fields§
§oauth2_api_url: String§api_version: String§max_retry_attempts: u8§chunk_upload_threads: u8§user_agent: StringImplementations§
Source§impl Config
impl Config
pub fn new() -> Self
pub fn base_api_url(&self) -> String
pub fn upload_url(&self) -> String
pub fn set_upload_url(&mut self, upload_url: String)
pub fn user_agent(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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