square_api_client/models/customer_segment.rs
1//! Model struct for CustomerSegment type
2
3use serde::{Deserialize, Serialize};
4
5use super::DateTime;
6
7/// Represents a group of customer profiles that match one or more predefined filter criteria.
8///
9/// Segments (also known as Smart Groups) are defined and created within the Customer Directory in
10/// the Square Seller Dashboard or Point of Sale.
11#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
12pub struct CustomerSegment {
13 /// **Read only** A unique Square-generated ID for the segment.
14 pub id: Option<String>,
15 /// **Read only** The name of the segment.
16 pub name: String,
17 /// **Read only** The timestamp when the segment was created.
18 pub created_at: Option<DateTime>,
19 /// **Read only** The timestamp when the segment was last updated.
20 pub updated_at: Option<DateTime>,
21}