square_api_client/models/
retrieve_customer_segment_response.rs

1//! Response body struct for the Retrieve Customer Segment API
2
3use serde::{Deserialize, Serialize};
4
5use super::{errors::Error, CustomerSegment};
6
7/// This is a model struct for RetrieveCustomerSegmentResponse type
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9pub struct RetrieveCustomerSegmentResponse {
10    /// Any errors that occurred during the request.
11    pub errors: Option<Vec<Error>>,
12    /// The retrieved customer group.
13    pub segment: CustomerSegment,
14}