Skip to main content

rillrate_protocol/live_data/board/
state.rs

1use crate::base::list_flow::{ListFlowSpec, ListFlowState};
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct BoardListSpec;
6
7impl ListFlowSpec for BoardListSpec {
8    type Id = String;
9    type Record = String;
10    type Action = ();
11    type Update = ();
12
13    fn update_record(_record: &mut Self::Record, _update: Self::Update) {
14        log::error!("Inner updates not supported to BoardList");
15    }
16}
17
18pub type BoardListState = ListFlowState<BoardListSpec>;