pub struct MessageConfig {
pub include_optional: bool,
pub field_configs: HashMap<String, FieldConfig>,
pub scenario: Option<MessageScenario>,
}
Expand description
Configuration for generating message samples
Fields§
§include_optional: bool
Whether to include optional fields
field_configs: HashMap<String, FieldConfig>
Field-specific configurations
scenario: Option<MessageScenario>
Predefined scenario to use
Trait Implementations§
Source§impl Clone for MessageConfig
impl Clone for MessageConfig
Source§fn clone(&self) -> MessageConfig
fn clone(&self) -> MessageConfig
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 MessageConfig
impl Debug for MessageConfig
Source§impl Default for MessageConfig
impl Default for MessageConfig
Source§fn default() -> MessageConfig
fn default() -> MessageConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageConfig
impl<'de> Deserialize<'de> for MessageConfig
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 MessageConfig
impl RefUnwindSafe for MessageConfig
impl Send for MessageConfig
impl Sync for MessageConfig
impl Unpin for MessageConfig
impl UnwindSafe for MessageConfig
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