pubstruct Address {
pub name stringpub address string
}
Purpose
RFC 5322 address subset aligned with `net/mail` ParseAddress ParseAddressList. No CFWS folding, no groups (`Name: a, b;`), no RFC 2047 encoded-words. Name quoting is `"` with `\"`.
Parameters
namestring
name
addressstring
field (string)
parse_address
XuAPI
pubfn parse_address(s &string) Address
Purpose
Parse as address. Throws on failure.
Parameters
s&string
source string (borrowed; caller keeps it; type &string)
Returns
Address — a value of this type
parse_address_list
XuAPI
pubfn parse_address_list(s &string) []Address
Purpose
Parse as address list. Throws on failure.
Parameters
s&string
source string (borrowed; caller keeps it; type &string)