Skip to main content

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 * Contact: devrel@onesignal.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10
11
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct GetSegmentsSuccessResponse {
15    /// The number of Segments in the response.
16    #[serde(rename = "total_count", skip_serializing_if = "Option::is_none")]
17    pub total_count: Option<i32>,
18    /// Set with the offset query parameter. Default 0.
19    #[serde(rename = "offset", skip_serializing_if = "Option::is_none")]
20    pub offset: Option<i32>,
21    /// Maximum number of Segments returned. Default 300.
22    #[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
23    pub limit: Option<i32>,
24    /// An array containing the Segment information.
25    #[serde(rename = "segments", skip_serializing_if = "Option::is_none")]
26    pub segments: Option<Vec<crate::models::SegmentData>>,
27}
28
29impl GetSegmentsSuccessResponse {
30    pub fn new() -> GetSegmentsSuccessResponse {
31        GetSegmentsSuccessResponse {
32            total_count: None,
33            offset: None,
34            limit: None,
35            segments: None,
36        }
37    }
38}
39
40