pub struct XML {
pub name: Option<String>,
pub namespace: Option<String>,
pub prefix: Option<String>,
pub attribute: Option<bool>,
pub wrapped: Option<bool>,
}Expand description
XML serialization metadata.
Provides information for XML representation of schema properties.
Fields§
§name: Option<String>Replaces the name of the element/attribute.
namespace: Option<String>The URI of the namespace definition. Must be an absolute URI.
prefix: Option<String>The prefix to be used for the name.
attribute: Option<bool>Whether the property translates to an XML attribute (default: false).
wrapped: Option<bool>Whether arrays are wrapped in an element (default: false).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for XML
impl<'de> Deserialize<'de> for XML
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
Auto Trait Implementations§
impl Freeze for XML
impl RefUnwindSafe for XML
impl Send for XML
impl Sync for XML
impl Unpin for XML
impl UnsafeUnpin for XML
impl UnwindSafe for XML
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