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§
Auto Trait Implementations§
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