#[non_exhaustive]pub struct MockProducerOptions<K, V> { /* private fields */ }Expand description
Parameters for MockProducer::with_options.
This struct has no Java counterpart (DoD #7). It exists solely to
satisfy CLAUDE.md §2’s cap on derived overload names: Java’s widest
MockProducer(Cluster, boolean, Partitioner, Serializer, Serializer)
constructor (MockProducer.java:113) differs from the group’s parameter-name
intersection — which is EMPTY, since the no-arg :149 is in the group — by
five parameters, so the cap fires and this struct becomes the method’s only
parameter, carrying every Java parameter.
It deliberately has no Default. auto_complete is what both
parameter-taking Java constructors (:113, :137) take from their caller, so
it has no Java-derived default; the no-arg :149, which does default it to
false, is translated as Default for MockProducer instead.
Construct it with MockProducerOptionsBuilder::new and set it:
MockProducerOptionsBuilder::build returns an error if auto_complete was
not set.