Skip to main content

onesignal_rust_api/models/
update_segment_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 UpdateSegmentSuccessResponse {
15    /// true if the segment was updated successfully, false otherwise.
16    #[serde(rename = "success", skip_serializing_if = "Option::is_none")]
17    pub success: Option<bool>,
18    /// UUID of the updated segment.
19    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
20    pub id: Option<String>,
21}
22
23impl UpdateSegmentSuccessResponse {
24    pub fn new() -> UpdateSegmentSuccessResponse {
25        UpdateSegmentSuccessResponse {
26            success: None,
27            id: None,
28        }
29    }
30}
31
32