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
A metadata object that allows for more fine-tuned XML model definitions.
Fields§
§name: Option<String>
Replaces the name of the element/attribute used for the described schema property.
namespace: Option<String>
The URI of the namespace definition.
prefix: Option<String>
The prefix to be used for the name.
attribute: Option<bool>
Declares whether the property definition translates to an attribute instead of an element.
wrapped: Option<bool>
MAY be used only for an array definition.
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
impl StructuralPartialEq for XML
Auto Trait Implementations§
impl Freeze for XML
impl RefUnwindSafe for XML
impl Send for XML
impl Sync for XML
impl Unpin 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