Skip to main content

manabrew_protocol/prompts/
reveal.rs

1use serde::{Deserialize, Serialize};
2use ts_rs::TS;
3
4use crate::game::CardDto;
5
6#[derive(Debug, Clone, Serialize, Deserialize, TS)]
7#[serde(rename_all = "camelCase")]
8#[ts(export, export_to = "prompts/reveal.ts")]
9pub struct RevealCardsInput {
10    pub cards: Vec<CardDto>,
11    pub zone: String,
12    pub owner_player_id: String,
13    pub message: String,
14}
15
16#[derive(Debug, Clone, Serialize, Deserialize, TS)]
17#[serde(
18    tag = "type",
19    rename_all = "camelCase",
20    rename_all_fields = "camelCase"
21)]
22#[ts(export, export_to = "prompts/reveal.ts")]
23pub enum RevealCardsOutput {
24    RevealCardsAcknowledged,
25}