Function aws_smithy_xml::decode::try_data

source ยท
pub fn try_data<'a, 'inp>(
    tokens: &'a mut impl Iterator<Item = Result<(XmlToken<'inp>, Depth), XmlDecodeError>>,
) -> Result<Cow<'inp, str>, XmlDecodeError>
Expand description

Returns the data element at the current position

If the current position is not a data element (and is instead a <start-element>) an error will be returned