macro_rules! set_email {
( $builder: expr, $val: expr ) => { ... };
}Expand description
Both Agent and Group have an mbox property which captures an email
address. This macro eliminates duplication of the logic involved in (a)
parsing an argument $val into a valid EmailAddress, (b) raising a
DataError if an error occurs, (b) assigning the result when successful
to the appropriate field of the given $builder instance, and (c) resetting
the other three IFI (Inverse Functional Identifier) fields to None.