reallyme_foundationdb_kit/keys/codec.rs
1// SPDX-FileCopyrightText: 2026 ReallyMe LLC
2// SPDX-License-Identifier: MIT OR Apache-2.0
3
4//! Key codec traits for repository-owned encoders.
5
6use bytes::Bytes;
7
8/// Encodes a typed key into FoundationDB tuple bytes.
9pub trait KeyEncoder {
10 /// Returns the encoded key.
11 fn encode_key(&self) -> Bytes;
12}