linkbreakers 1.129.3

Official Rust SDK for the Linkbreakers API
Documentation
/*
 * Linkbreakers API
 *
 * This is a documentation of all the APIs of Linkbreakers
 *
 * The version of the OpenAPI document: 1.129.3
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListCustomDomainsResponse {
    #[serde(rename = "customDomains", skip_serializing_if = "Option::is_none")]
    pub custom_domains: Option<Vec<models::CustomDomain>>,
    /// Cursor to continue listing custom domains. Empty on the last page.
    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none")]
    pub next_page_token: Option<String>,
    /// How many records exist in total, so a client can tell a complete answer from a page of one. A local-first client reads absence from this list as deletion, and may only do so when the count it was given matches what it received: without that, one page would look like the whole model and everything beyond it would be removed locally.
    #[serde(rename = "totalCount", skip_serializing_if = "Option::is_none")]
    pub total_count: Option<String>,
}

impl ListCustomDomainsResponse {
    pub fn new() -> ListCustomDomainsResponse {
        ListCustomDomainsResponse {
            custom_domains: None,
            next_page_token: None,
            total_count: None,
        }
    }
}