pub struct SquareApiConfigBuilder { /* private fields */ }
Expand description
A builder struct to construct a SquareApiConfig
Implementations§
Source§impl SquareApiConfigBuilder
A builder to construct a SquareApiConfig
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 Freeze for SquareApiConfigBuilder
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