Struct square_api_client::SquareClient
source · [−]pub struct SquareClient {
pub cards: CardsApi,
pub catalog: CatalogApi,
pub customers: CustomersApi,
pub gift_cards: GiftCardsApi,
pub gift_card_activities: GiftCardActivitiesApi,
pub inventory: InventoryApi,
pub locations: LocationsApi,
pub orders: OrdersApi,
pub payments: PaymentsApi,
pub refunds: RefundsApi,
}
Expand description
Gateway struct for the library. This struct acts as a factory for Apis. It holds the state of the SDK.
Fields
cards: CardsApi
catalog: CatalogApi
customers: CustomersApi
gift_cards: GiftCardsApi
gift_card_activities: GiftCardActivitiesApi
inventory: InventoryApi
locations: LocationsApi
orders: OrdersApi
payments: PaymentsApi
refunds: RefundsApi
Implementations
sourceimpl SquareClient
impl SquareClient
pub fn try_new(config: Configuration) -> Result<Self, ApiError>
Auto Trait Implementations
impl !RefUnwindSafe for SquareClient
impl Send for SquareClient
impl Sync for SquareClient
impl Unpin for SquareClient
impl !UnwindSafe for SquareClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more