linkbreakers 1.138.2

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.138.2
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// AttributeWriteMode :  - ATTRIBUTE_WRITE_MODE_SET: Overwrite, so the profile holds the latest value.  - ATTRIBUTE_WRITE_MODE_SET_ONCE: Keep the first value, for first-touch facts.
///  - ATTRIBUTE_WRITE_MODE_SET: Overwrite, so the profile holds the latest value.  - ATTRIBUTE_WRITE_MODE_SET_ONCE: Keep the first value, for first-touch facts.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum AttributeWriteMode {
    #[serde(rename = "ATTRIBUTE_WRITE_MODE_UNSPECIFIED")]
    AttributeWriteModeUnspecified,
    #[serde(rename = "ATTRIBUTE_WRITE_MODE_SET")]
    AttributeWriteModeSet,
    #[serde(rename = "ATTRIBUTE_WRITE_MODE_SET_ONCE")]
    AttributeWriteModeSetOnce,

}

impl std::fmt::Display for AttributeWriteMode {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::AttributeWriteModeUnspecified => write!(f, "ATTRIBUTE_WRITE_MODE_UNSPECIFIED"),
            Self::AttributeWriteModeSet => write!(f, "ATTRIBUTE_WRITE_MODE_SET"),
            Self::AttributeWriteModeSetOnce => write!(f, "ATTRIBUTE_WRITE_MODE_SET_ONCE"),
        }
    }
}

impl Default for AttributeWriteMode {
    fn default() -> AttributeWriteMode {
        Self::AttributeWriteModeUnspecified
    }
}