pub struct XmlTextVisitor<'v> { /* private fields */ }Expand description
A visitor for deserializing to XmlText.
Implementations§
Source§impl XmlTextVisitor<'_>
impl XmlTextVisitor<'_>
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new XmlTextVisitor.
Trait Implementations§
Source§impl Default for XmlTextVisitor<'_>
impl Default for XmlTextVisitor<'_>
Source§impl<'v> Visitor<'v> for XmlTextVisitor<'v>
impl<'v> Visitor<'v> for XmlTextVisitor<'v>
Source§fn expecting(&self, formatter: &mut Formatter<'_>) -> Result
fn expecting(&self, formatter: &mut Formatter<'_>) -> Result
Returns a description of the type that this visitor expects.
Source§fn visit_text<E, V>(self, value: V) -> Result<Self::Value, E>
fn visit_text<E, V>(self, value: V) -> Result<Self::Value, E>
Visits an XML text node.
Source§fn visit_cdata<E, V>(self, value: V) -> Result<Self::Value, E>
fn visit_cdata<E, V>(self, value: V) -> Result<Self::Value, E>
Visits an XML CDATA node.
Source§fn visit_element<A>(self, element: A) -> Result<Self::Value, A::Error>where
A: ElementAccess<'de>,
fn visit_element<A>(self, element: A) -> Result<Self::Value, A::Error>where
A: ElementAccess<'de>,
Visits an XML element.
Source§fn visit_attribute<A>(self, attribute: A) -> Result<Self::Value, A::Error>where
A: AttributeAccess<'de>,
fn visit_attribute<A>(self, attribute: A) -> Result<Self::Value, A::Error>where
A: AttributeAccess<'de>,
Visits an XML attribute.
Source§fn visit_seq<S>(self, sequence: S) -> Result<Self::Value, S::Error>where
S: SeqAccess<'de>,
fn visit_seq<S>(self, sequence: S) -> Result<Self::Value, S::Error>where
S: SeqAccess<'de>,
Visits a sequence of values.
Source§fn visit_pi<E, V>(self, pi: V) -> Result<Self::Value, E>where
E: Error,
V: XmlProcessingInstruction,
fn visit_pi<E, V>(self, pi: V) -> Result<Self::Value, E>where
E: Error,
V: XmlProcessingInstruction,
Visits an XML PI node.
Source§fn visit_decl<E, V>(self, declaration: V) -> Result<Self::Value, E>where
E: Error,
V: XmlDeclaration,
fn visit_decl<E, V>(self, declaration: V) -> Result<Self::Value, E>where
E: Error,
V: XmlDeclaration,
Visits a declaration.
Source§fn visit_comment<E, V>(self, comment: V) -> Result<Self::Value, E>where
E: Error,
V: XmlComment<'de>,
fn visit_comment<E, V>(self, comment: V) -> Result<Self::Value, E>where
E: Error,
V: XmlComment<'de>,
Visits a comment.
Source§fn visit_doctype<E, V>(self, doctype: V) -> Result<Self::Value, E>where
E: Error,
V: XmlDoctype<'de>,
fn visit_doctype<E, V>(self, doctype: V) -> Result<Self::Value, E>where
E: Error,
V: XmlDoctype<'de>,
Visits a doctype declaration.