pub struct XmlElementConfig { /* private fields */ }Expand description
XML Element configuration, determines how to map an XML element (identified by an XPath expression) to STAM
Implementations§
Source§impl XmlElementConfig
impl XmlElementConfig
pub fn update(&mut self, base: &XmlElementConfig)
Sourcepub fn with_stop(self, stop: bool) -> Self
pub fn with_stop(self, stop: bool) -> Self
This sets the mode that determines how the element is handledhttps://www.youtube.com/watch?v=G_BrbhRrP6g
Sourcepub fn with_whitespace(self, handling: XmlWhitespaceHandling) -> Self
pub fn with_whitespace(self, handling: XmlWhitespaceHandling) -> Self
This sets the whitespace handling for this element
pub fn with_text(self, text: bool) -> Self
pub fn with_base(self, iter: impl Iterator<Item = impl Into<String>>) -> Self
pub fn without_text(self) -> Self
pub fn with_annotation(self, annotation: XmlAnnotationHandling) -> Self
Trait Implementations§
Source§impl Clone for XmlElementConfig
impl Clone for XmlElementConfig
Source§fn clone(&self) -> XmlElementConfig
fn clone(&self) -> XmlElementConfig
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 Debug for XmlElementConfig
impl Debug for XmlElementConfig
Source§impl<'de> Deserialize<'de> for XmlElementConfig
impl<'de> Deserialize<'de> for XmlElementConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for XmlElementConfig
impl PartialEq for XmlElementConfig
Auto Trait Implementations§
impl Freeze for XmlElementConfig
impl RefUnwindSafe for XmlElementConfig
impl Send for XmlElementConfig
impl Sync for XmlElementConfig
impl Unpin for XmlElementConfig
impl UnwindSafe for XmlElementConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more