onesignal_rust_api/models/
get_segments_success_response.rs

1/*
2 * OneSignal
3 *
4 * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5 *
6 * The version of the OpenAPI document: 5.2.1
7 * Contact: devrel@onesignal.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct GetSegmentsSuccessResponse {
16    /// The number of Segments in the response.
17    #[serde(rename = "total_count", skip_serializing_if = "Option::is_none")]
18    pub total_count: Option<i32>,
19    /// Set with the offset query parameter. Default 0.
20    #[serde(rename = "offset", skip_serializing_if = "Option::is_none")]
21    pub offset: Option<i32>,
22    /// Maximum number of Segments returned. Default 300.
23    #[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
24    pub limit: Option<i32>,
25    /// An array containing the Segment information.
26    #[serde(rename = "segments", skip_serializing_if = "Option::is_none")]
27    pub segments: Option<Vec<crate::models::SegmentData>>,
28}
29
30impl GetSegmentsSuccessResponse {
31    pub fn new() -> GetSegmentsSuccessResponse {
32        GetSegmentsSuccessResponse {
33            total_count: None,
34            offset: None,
35            limit: None,
36            segments: None,
37        }
38    }
39}
40
41