pub struct Address<'a> {
pub street: Vec<Cow<'a, str>>,
pub city: Cow<'a, str>,
pub province: Option<Cow<'a, str>>,
pub postal_code: Option<Cow<'a, str>>,
pub country: Country,
}Expand description
The <addr> type on contact transactions
Fields§
§street: Vec<Cow<'a, str>>The <street> tags under <addr>
city: Cow<'a, str>The <city> tag under <addr>
province: Option<Cow<'a, str>>The <sp> tag under <addr>
postal_code: Option<Cow<'a, str>>The <pc> tag under <addr>
country: CountryThe <cc> tag under <addr>
Implementations§
Trait Implementations§
Source§impl<'a, 'xml> FromXml<'xml> for Address<'a>
impl<'a, 'xml> FromXml<'xml> for Address<'a>
const KIND: Kind = ::instant_xml::Kind::Element
type Accumulator = Option<Address<'a>>
fn matches(id: Id<'_>, field: Option<Id<'_>>) -> bool
fn deserialize<'cx>( into: &mut Self::Accumulator, field: &'static str, deserializer: &mut Deserializer<'cx, 'xml>, ) -> Result<(), Error>
Auto Trait Implementations§
impl<'a> Freeze for Address<'a>
impl<'a> RefUnwindSafe for Address<'a>
impl<'a> Send for Address<'a>
impl<'a> Sync for Address<'a>
impl<'a> Unpin for Address<'a>
impl<'a> UnwindSafe for Address<'a>
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