pub struct MessageGenerator { /* private fields */ }Expand description
Message generator
Implementations§
Source§impl MessageGenerator
impl MessageGenerator
Sourcepub fn with_content_type(
min_size: usize,
max_size: usize,
content_type: MessageContent,
) -> Self
pub fn with_content_type( min_size: usize, max_size: usize, content_type: MessageContent, ) -> Self
Create a new message generator with content type
Sourcepub fn generate_with_attachment(&self, attachment_size: usize) -> String
pub fn generate_with_attachment(&self, attachment_size: usize) -> String
Generate a message with attachment
Trait Implementations§
Source§impl Clone for MessageGenerator
impl Clone for MessageGenerator
Source§fn clone(&self) -> MessageGenerator
fn clone(&self) -> MessageGenerator
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 moreAuto Trait Implementations§
impl Freeze for MessageGenerator
impl RefUnwindSafe for MessageGenerator
impl Send for MessageGenerator
impl Sync for MessageGenerator
impl Unpin for MessageGenerator
impl UnsafeUnpin for MessageGenerator
impl UnwindSafe for MessageGenerator
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