pub struct PostalInfo<'a> {
pub info_type: Cow<'a, str>,
pub name: Cow<'a, str>,
pub organization: Option<Cow<'a, str>>,
pub address: Address<'a>,
}Expand description
The <postalInfo> type on contact transactions
Fields§
§info_type: Cow<'a, str>The ‘type’ attr on <postalInfo>
name: Cow<'a, str>The <name> tag under <postalInfo>
organization: Option<Cow<'a, str>>The <org> tag under <postalInfo>
address: Address<'a>The <addr> tag under <postalInfo>
Implementations§
Trait Implementations§
Source§impl<'a> Clone for PostalInfo<'a>
impl<'a> Clone for PostalInfo<'a>
Source§fn clone(&self) -> PostalInfo<'a>
fn clone(&self) -> PostalInfo<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PostalInfo<'a>
impl<'a> Debug for PostalInfo<'a>
Source§impl<'a, 'xml> FromXml<'xml> for PostalInfo<'a>
impl<'a, 'xml> FromXml<'xml> for PostalInfo<'a>
const KIND: Kind = ::instant_xml::Kind::Element
type Accumulator = Option<PostalInfo<'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 PostalInfo<'a>
impl<'a> RefUnwindSafe for PostalInfo<'a>
impl<'a> Send for PostalInfo<'a>
impl<'a> Sync for PostalInfo<'a>
impl<'a> Unpin for PostalInfo<'a>
impl<'a> UnwindSafe for PostalInfo<'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