reifydb-sub-server 0.4.13

Common infrastructure for server subsystems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2025 ReifyDB

use serde::{Deserialize, Serialize};

/// The three response formats the server can emit.
///
/// - `Json`  - rows-shape JSON: `[[{col: val, ...}, ...], ...]` (one inner array per frame)
/// - `Frames` - frames-shape JSON: `{frames: [ResponseFrame, ...]}` with columnar payloads
/// - `Rbcf`  - frames-shape binary, RBCF-encoded
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, Default)]
#[serde(rename_all = "lowercase")]
pub enum WireFormat {
	Json,
	#[default]
	Frames,
	Rbcf,
}