linkbreakers 1.52.5

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

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

/// SocialLinksDisplayStyle : - SOCIAL_LINKS_DISPLAY_STYLE_DETAILED: Display icon with text label (default)  - SOCIAL_LINKS_DISPLAY_STYLE_COMPACT: Display icons only in a compact row
/// - SOCIAL_LINKS_DISPLAY_STYLE_DETAILED: Display icon with text label (default)  - SOCIAL_LINKS_DISPLAY_STYLE_COMPACT: Display icons only in a compact row
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum SocialLinksDisplayStyle {
    #[serde(rename = "SOCIAL_LINKS_DISPLAY_STYLE_UNSPECIFIED")]
    SocialLinksDisplayStyleUnspecified,
    #[serde(rename = "SOCIAL_LINKS_DISPLAY_STYLE_DETAILED")]
    SocialLinksDisplayStyleDetailed,
    #[serde(rename = "SOCIAL_LINKS_DISPLAY_STYLE_COMPACT")]
    SocialLinksDisplayStyleCompact,

}

impl std::fmt::Display for SocialLinksDisplayStyle {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::SocialLinksDisplayStyleUnspecified => write!(f, "SOCIAL_LINKS_DISPLAY_STYLE_UNSPECIFIED"),
            Self::SocialLinksDisplayStyleDetailed => write!(f, "SOCIAL_LINKS_DISPLAY_STYLE_DETAILED"),
            Self::SocialLinksDisplayStyleCompact => write!(f, "SOCIAL_LINKS_DISPLAY_STYLE_COMPACT"),
        }
    }
}

impl Default for SocialLinksDisplayStyle {
    fn default() -> SocialLinksDisplayStyle {
        Self::SocialLinksDisplayStyleUnspecified
    }
}