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