pub struct AutoProduceConfig {
pub enabled: bool,
pub rate_per_second: u64,
pub duration_seconds: Option<u64>,
pub total_count: Option<usize>,
}Expand description
Configuration for auto-producing messages
Fields§
§enabled: bool§rate_per_second: u64§duration_seconds: Option<u64>§total_count: Option<usize>Trait Implementations§
Source§impl Clone for AutoProduceConfig
impl Clone for AutoProduceConfig
Source§fn clone(&self) -> AutoProduceConfig
fn clone(&self) -> AutoProduceConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 AutoProduceConfig
impl Debug for AutoProduceConfig
Source§impl<'de> Deserialize<'de> for AutoProduceConfig
impl<'de> Deserialize<'de> for AutoProduceConfig
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 AutoProduceConfig
impl RefUnwindSafe for AutoProduceConfig
impl Send for AutoProduceConfig
impl Sync for AutoProduceConfig
impl Unpin for AutoProduceConfig
impl UnwindSafe for AutoProduceConfig
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