1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//! Response body struct for the Search Team Members API
use serde::Deserialize;
use super::{errors::Error, TeamMember};
/// This is a model struct for SearchTeamMembersResponse type.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
pub struct SearchTeamMembersResponse {
/// The filtered list of `TeamMember` objects.
pub team_members: Option<Vec<TeamMember>>,
/// The opaque cursor for fetching the next page. For more information, see
/// [pagination](https://developer.squareup.com/docs/working-with-apis/pagination).
pub cursor: Option<String>,
/// The errors that occurred during the request.
pub errors: Option<Vec<Error>>,
}