//! Value-only handlers for sources and sinks that share a platform.
use crate::;
/// A received record that exposes its payload to value-only handlers.
///
/// `value` returns `HandlerError::Reject` when the record has no payload that
/// can be represented as `Value`, such as a Kafka null value. A value-only
/// handler is not invoked for such a record.
/// A received record whose platform also defines the publish type and its
/// default metadata inheritance.
///
/// Implemented by an adapter's record type for that adapter's publish type.
/// A [`ByValue`](crate::ByValue) handler output is built with `publish`, and
/// `Inherit::default()` is registered as the first middleware, so the metadata
/// policy is chosen by the platform rather than by the handler.