pub struct ClientProfile {
pub http_profile: HttpProfile,
pub sign_method: String,
pub api_version: String,
pub language: String,
pub debug: bool,
}
Expand description
Client configuration profile
Fields§
§http_profile: HttpProfile
HTTP profile for request settings
sign_method: String
Signature method (default: HmacSHA256)
api_version: String
API version
language: String
Language for error messages
debug: bool
Debug mode
Implementations§
Source§impl ClientProfile
impl ClientProfile
Sourcepub fn with_http_profile(http_profile: HttpProfile) -> Self
pub fn with_http_profile(http_profile: HttpProfile) -> Self
Create a new client profile with custom HTTP profile
Sourcepub fn set_http_profile(&mut self, profile: HttpProfile) -> &mut Self
pub fn set_http_profile(&mut self, profile: HttpProfile) -> &mut Self
Set the HTTP profile
Sourcepub fn set_sign_method<S: Into<String>>(&mut self, method: S) -> &mut Self
pub fn set_sign_method<S: Into<String>>(&mut self, method: S) -> &mut Self
Set the signature method
Sourcepub fn set_api_version<S: Into<String>>(&mut self, version: S) -> &mut Self
pub fn set_api_version<S: Into<String>>(&mut self, version: S) -> &mut Self
Set the API version
Sourcepub fn set_language<S: Into<String>>(&mut self, language: S) -> &mut Self
pub fn set_language<S: Into<String>>(&mut self, language: S) -> &mut Self
Set the language
Sourcepub fn get_http_profile(&self) -> &HttpProfile
pub fn get_http_profile(&self) -> &HttpProfile
Get the HTTP profile
Sourcepub fn get_sign_method(&self) -> &str
pub fn get_sign_method(&self) -> &str
Get the signature method
Sourcepub fn get_api_version(&self) -> &str
pub fn get_api_version(&self) -> &str
Get the API version
Sourcepub fn get_language(&self) -> &str
pub fn get_language(&self) -> &str
Get the language
Trait Implementations§
Source§impl Clone for ClientProfile
impl Clone for ClientProfile
Source§fn clone(&self) -> ClientProfile
fn clone(&self) -> ClientProfile
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 ClientProfile
impl Debug for ClientProfile
Auto Trait Implementations§
impl Freeze for ClientProfile
impl RefUnwindSafe for ClientProfile
impl Send for ClientProfile
impl Sync for ClientProfile
impl Unpin for ClientProfile
impl UnwindSafe for ClientProfile
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