Merge pull request #4 from sonro/into-string

Add feature: String from EmailAddress
This commit is contained in:
Simon Johnston
2021-11-30 15:15:47 +00:00
committed by GitHub
+6
View File
@@ -376,6 +376,12 @@ impl FromStr for EmailAddress {
}
}
impl From<EmailAddress> for String {
fn from(email: EmailAddress) -> Self {
email.0
}
}
impl EmailAddress {
///
/// Determine whether the `address` string is a valid email address. Note this is equivalent to