#![allow(clippy::too_many_arguments, unused_imports, non_camel_case_types)]
//! PositionType enum definition.
//!
//! This file is generated automatically from the Python enum.
//! Do not edit this file manually.
use serde::{Deserialize, Serialize};
/// Enum for position type.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum PositionType {
#[serde(rename = "spot")]
SPOT,
#[serde(rename = "perp")]
PERPETUAL,
}
impl PositionType {
/// Convert to string representation.
pub fn as_str(&self) -> &'static str {
match self {
PositionType::SPOT => "spot",
PositionType::PERPETUAL => "perp",
}
}
}