vrchatapi 1.20.7

VRChat API Client for Rust
Documentation
/*
 * VRChat API Documentation
 *
 *
 * Contact: vrchatapi.lpv0t@aries.fyi
 * Generated by: https://openapi-generator.tech
 */

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

/// ImageLoopStyle : Animation looping style for images.
/// Animation looping style for images.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ImageLoopStyle {
    #[serde(rename = "linear")]
    Linear,
    #[serde(rename = "pingpong")]
    Pingpong,
}

impl std::fmt::Display for ImageLoopStyle {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Linear => write!(f, "linear"),
            Self::Pingpong => write!(f, "pingpong"),
        }
    }
}

impl Default for ImageLoopStyle {
    fn default() -> ImageLoopStyle {
        Self::Linear
    }
}