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