#[non_exhaustive]pub struct ConsumerRecordOptions<K, V> { /* private fields */ }Expand description
Every parameter of Java’s widest ConsumerRecord constructor
(ConsumerRecord.java:138).
This struct has no Java counterpart (DoD #7). It exists solely to
satisfy CLAUDE.md §2’s cap on derived overload names: that constructor
differs from the group’s intersection
{topic, partition, offset, key, value} by seven parameters, so the cap
fires and this struct becomes the method’s only parameter, carrying
every Java parameter including the intersection’s own.
It deliberately has no Default. topic, partition, offset,
key and value are what even Java’s narrowest constructor
(ConsumerRecord.java:83) takes from its caller, so none of them has a
Java-derived default — and a synthesised empty topic would name no
partition at all. Construct it with ConsumerRecordOptionsBuilder::new
and set them: ConsumerRecordOptionsBuilder::build returns an error if any of topic, partition, offset, key, value was not set.