pub struct Config {
pub protocol: String,
pub host: String,
pub port: u32,
pub version: String,
pub content_type: String,
pub authorization: Authorization,
pub request_timeout: u32,
}Fields§
§protocol: String§host: String§port: u32§version: String§content_type: String§request_timeout: u32Implementations§
Source§impl Config
impl Config
pub fn new(auth: &str) -> Config
pub fn set_protocol(&mut self, protocol: &str)
pub fn set_host(&mut self, host: &str)
pub fn set_port(&mut self, port: u32)
pub fn set_version(&mut self, version: &str)
pub fn set_content_type(&mut self, content_type: &str)
pub fn set_request_timeout(&mut self, request_timeout: u32)
pub fn get_url(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin 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