Skip to main content

manabrew_protocol/prompts/
mulligan.rs

1use serde::{Deserialize, Serialize};
2use ts_rs::TS;
3
4#[derive(Debug, Clone, Serialize, Deserialize, TS)]
5#[serde(rename_all = "camelCase")]
6#[ts(export, export_to = "prompts/mulligan.ts")]
7pub struct MulliganInput {
8    pub hand_card_ids: Vec<String>,
9    pub mulligan_count: u32,
10}
11
12#[derive(Debug, Clone, Serialize, Deserialize, TS)]
13#[serde(
14    tag = "type",
15    rename_all = "camelCase",
16    rename_all_fields = "camelCase"
17)]
18#[ts(export, export_to = "prompts/mulligan.ts")]
19pub enum MulliganOutput {
20    MulliganDecision { keep: bool },
21}