vrchatapi 1.20.8-nightly.11

VRChat API Client for Rust
Documentation
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
    }
}