reallyme-foundationdb-kit 0.1.1

Production FoundationDB connector and tenant primitives for ReallyMe Platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-FileCopyrightText: Copyright © 2026 ReallyMe LLC. All rights reserved
//
// SPDX-License-Identifier: MIT OR Apache-2.0

//! Key codec traits for repository-owned encoders.

use bytes::Bytes;

/// Encodes a typed key into FoundationDB tuple bytes.
pub trait KeyEncoder {
    /// Returns the encoded key.
    fn encode_key(&self) -> Bytes;
}