pub struct MessageAutoProduce {
pub enabled: bool,
pub rate_per_second: Option<u64>,
pub duration_seconds: Option<u64>,
pub total_count: Option<usize>,
pub partition: Option<i32>,
pub trigger: Option<String>,
pub state_machine: Option<StateMachineSpec>,
}Expand description
A superset of AutoProduceConfig. Simple rate-limited auto-produce
fields are first-class; state_machine drives the probabilistic state
graph executor when trigger == "state_machine".
Fields§
§enabled: bool§rate_per_second: Option<u64>§duration_seconds: Option<u64>§total_count: Option<usize>§partition: Option<i32>§trigger: Option<String>"rate" (default) drives the rate-based AutoProducer.
"state_machine" drives fixture_executor::StateMachineExecutor.
Other values deserialize cleanly but don’t hook anything up.
state_machine: Option<StateMachineSpec>Graph definition used by the "state_machine" trigger.
Trait Implementations§
Source§impl Clone for MessageAutoProduce
impl Clone for MessageAutoProduce
Source§fn clone(&self) -> MessageAutoProduce
fn clone(&self) -> MessageAutoProduce
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageAutoProduce
impl Debug for MessageAutoProduce
Source§impl<'de> Deserialize<'de> for MessageAutoProduce
impl<'de> Deserialize<'de> for MessageAutoProduce
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MessageAutoProduce
impl RefUnwindSafe for MessageAutoProduce
impl Send for MessageAutoProduce
impl Sync for MessageAutoProduce
impl Unpin for MessageAutoProduce
impl UnsafeUnpin for MessageAutoProduce
impl UnwindSafe for MessageAutoProduce
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more