pub struct SquareClient {Show 16 fields
pub apple_pay: ApplePayApi,
pub cards: CardsApi,
pub catalog: CatalogApi,
pub customers: CustomersApi,
pub customer_groups: CustomerGroupsApi,
pub customer_segments: CustomerSegmentsApi,
pub gift_cards: GiftCardsApi,
pub gift_card_activities: GiftCardActivitiesApi,
pub inventory: InventoryApi,
pub invoices: InvoicesApi,
pub locations: LocationsApi,
pub orders: OrdersApi,
pub payments: PaymentsApi,
pub refunds: RefundsApi,
pub subscriptions: SubscriptionsApi,
pub team: TeamApi,
}
Expand description
Gateway struct for the library. This struct acts as a factory for Apis. It holds the state of the SDK.
Fields§
§apple_pay: ApplePayApi
§cards: CardsApi
§catalog: CatalogApi
§customers: CustomersApi
§customer_groups: CustomerGroupsApi
§customer_segments: CustomerSegmentsApi
§gift_cards: GiftCardsApi
§gift_card_activities: GiftCardActivitiesApi
§inventory: InventoryApi
§invoices: InvoicesApi
§locations: LocationsApi
§orders: OrdersApi
§payments: PaymentsApi
§refunds: RefundsApi
§subscriptions: SubscriptionsApi
§team: TeamApi
Implementations§
Source§impl SquareClient
impl SquareClient
pub fn try_new(config: Configuration) -> Result<Self, ApiError>
Auto Trait Implementations§
impl Freeze for SquareClient
impl !RefUnwindSafe for SquareClient
impl Send for SquareClient
impl Sync for SquareClient
impl Unpin for SquareClient
impl !UnwindSafe for SquareClient
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