pub struct Voice<'a> {
pub extension: Option<Cow<'a, str>>,
pub number: Cow<'a, str>,
}Expand description
The data for <voice> types on domain transactions
Fields§
§extension: Option<Cow<'a, str>>The value of the ‘x’ attr on <voice> and <fax> tags
number: Cow<'a, str>The inner text on the <voice> and <fax> tags
Implementations§
Trait Implementations§
Source§impl<'a, 'xml> FromXml<'xml> for Voice<'a>
impl<'a, 'xml> FromXml<'xml> for Voice<'a>
const KIND: Kind = ::instant_xml::Kind::Element
type Accumulator = Option<Voice<'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>
impl<'a> StructuralPartialEq for Voice<'a>
Auto Trait Implementations§
impl<'a> Freeze for Voice<'a>
impl<'a> RefUnwindSafe for Voice<'a>
impl<'a> Send for Voice<'a>
impl<'a> Sync for Voice<'a>
impl<'a> Unpin for Voice<'a>
impl<'a> UnwindSafe for Voice<'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