confluent_kafka/common/record/mod.rs
1// Copyright 2025 Confluent Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Provides utility components related to Kafka records
16//! (`org.apache.kafka.common.record`).
17//!
18//! In Kafka 4.3.1 (KAFKA-20128) the low-level record and record-batch
19//! representation moved to the `internal` submodule
20//! (`org.apache.kafka.common.record.internal`). Only [`TimestampType`] stays in
21//! this package. [`InvalidRecordError`](crate::common::InvalidRecordError) mirrors
22//! `org.apache.kafka.common.InvalidRecordException` (never a `record`-package
23//! type in Java; kept here for its long-standing Rust home).
24
25mod timestamp_type;
26
27pub(crate) mod internal;
28pub use timestamp_type::TimestampType;