pub struct EmailGenerator { /* private fields */ }Expand description
Email generator with corporate patterns.
Implementations§
Source§impl EmailGenerator
impl EmailGenerator
Sourcepub fn with_domain(self, domain: &str) -> Self
pub fn with_domain(self, domain: &str) -> Self
Set the email domain.
Sourcepub fn generate(
&self,
first_name: &str,
last_name: &str,
rng: &mut impl Rng,
) -> String
pub fn generate( &self, first_name: &str, last_name: &str, rng: &mut impl Rng, ) -> String
Generate an email address.
Sourcepub fn generate_functional(&self, function: &str) -> String
pub fn generate_functional(&self, function: &str) -> String
Generate a generic/functional email address.
Trait Implementations§
Source§impl Clone for EmailGenerator
impl Clone for EmailGenerator
Source§fn clone(&self) -> EmailGenerator
fn clone(&self) -> EmailGenerator
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 EmailGenerator
impl Debug for EmailGenerator
Auto Trait Implementations§
impl Freeze for EmailGenerator
impl RefUnwindSafe for EmailGenerator
impl Send for EmailGenerator
impl Sync for EmailGenerator
impl Unpin for EmailGenerator
impl UnsafeUnpin for EmailGenerator
impl UnwindSafe for EmailGenerator
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