use crate::models;
use serde::{Deserialize, Serialize};
#[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
}
}