pub struct XmlObject {
pub name: Option<String>,
pub namespace: Option<String>,
pub prefix: Option<String>,
pub attribute: bool,
pub wrapped: bool,
pub text: bool,
pub ordered: bool,
pub extensions: Vec<(String, ValueRef)>,
}Expand description
OAS Schema Object’s xml block: governs how the schema serializes
to XML — element name override, namespace, prefix, attribute-vs-
element placement, array wrapping. No in-tree generator currently
emits XML clients; the IR carries the data so a future XML-capable
generator can consume it.
Fields§
§name: Option<String>§namespace: Option<String>§prefix: Option<String>§attribute: booltrue ⇒ render as XML attribute on the parent element;
false ⇒ render as child element. Defaults to false.
wrapped: boolArray-only: true ⇒ wrap the array in a parent element
(<wrapper><item/><item/></wrapper>). Defaults to false.
text: boolOAS 3.2 text — true ⇒ render the value as element text
content rather than a child element or attribute. Defaults to
false.
ordered: boolOAS 3.2 ordered — array-only: true ⇒ element order is
significant (consumers must preserve it). Defaults to false.
extensions: Vec<(String, ValueRef)>Trait Implementations§
Source§impl<'de> Deserialize<'de> for XmlObject
impl<'de> Deserialize<'de> for XmlObject
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 XmlObject
Auto Trait Implementations§
impl Freeze for XmlObject
impl RefUnwindSafe for XmlObject
impl Send for XmlObject
impl Sync for XmlObject
impl Unpin for XmlObject
impl UnsafeUnpin for XmlObject
impl UnwindSafe for XmlObject
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