Created
October 4, 2022 09:53
-
-
Save berkes/793359fc7890fd58bb6c532a5919c4cf to your computer and use it in GitHub Desktop.
Using Email Eq.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn make_and_send_report(to: EmailAddress, pages: Vec<PageRequest>) { | |
if to == EmailAddress::new("[email protected]".to_string()).expect("valid email") { | |
return; | |
} | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment