Struct square_rust::config::SquareApiConfigBuilder
source · pub struct SquareApiConfigBuilder { /* private fields */ }
Expand description
A builder struct to construct a SquareApiConfig
Implementations§
source§impl SquareApiConfigBuilder
impl SquareApiConfigBuilder
A builder to construct a SquareApiConfig
sourcepub fn environment(&mut self, environment: Environment) -> &mut Self
pub fn environment(&mut self, environment: Environment) -> &mut Self
Set the environment
sourcepub fn api_version(&mut self, api_version: SquareApiVersion) -> &mut Self
pub fn api_version(&mut self, api_version: SquareApiVersion) -> &mut Self
Set the api version
sourcepub fn http_client_config(
&mut self,
http_client_config: SquareHttpClientConfig
) -> &mut Self
pub fn http_client_config( &mut self, http_client_config: SquareHttpClientConfig ) -> &mut Self
Set the http client config
sourcepub fn access_token(&mut self, access_token: String) -> &mut Self
pub fn access_token(&mut self, access_token: String) -> &mut Self
Set the access token
sourcepub fn build(&self) -> SquareApiConfig
pub fn build(&self) -> SquareApiConfig
Build the SquareApiConfig
Trait Implementations§
source§impl Default for SquareApiConfigBuilder
impl Default for SquareApiConfigBuilder
source§fn default() -> SquareApiConfigBuilder
fn default() -> SquareApiConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SquareApiConfigBuilder
impl Send for SquareApiConfigBuilder
impl Sync for SquareApiConfigBuilder
impl Unpin for SquareApiConfigBuilder
impl UnwindSafe for SquareApiConfigBuilder
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