autogen_squareup/models/search_team_members_response.rs
1/*
2 * Square
3 *
4 * Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.
5 *
6 * The version of the OpenAPI document: 2.0
7 * Contact: developers@squareup.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// SearchTeamMembersResponse : Represents a response from a search request containing a filtered list of `TeamMember` objects.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SearchTeamMembersResponse {
17 /// The filtered list of `TeamMember` objects.
18 #[serde(rename = "team_members", skip_serializing_if = "Option::is_none")]
19 pub team_members: Option<Vec<models::TeamMember>>,
20 /// The opaque cursor for fetching the next page. For more information, see [pagination](https://developer.squareup.com/docs/working-with-apis/pagination).
21 #[serde(rename = "cursor", skip_serializing_if = "Option::is_none")]
22 pub cursor: Option<String>,
23 /// The errors that occurred during the request.
24 #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
25 pub errors: Option<Vec<models::Error>>,
26}
27
28impl SearchTeamMembersResponse {
29 /// Represents a response from a search request containing a filtered list of `TeamMember` objects.
30 pub fn new() -> SearchTeamMembersResponse {
31 SearchTeamMembersResponse {
32 team_members: None,
33 cursor: None,
34 errors: None,
35 }
36 }
37}
38