pub struct Xml {
pub node_type: Option<String>,
pub name: Option<String>,
pub namespace: Option<String>,
pub prefix: Option<String>,
pub attribute: Option<bool>,
pub wrapped: Option<bool>,
pub extensions: Extensions,
}Expand description
Metadata describing the XML representation of a schema.
Kynos does not emit XML today; this exists so that descriptions parsed from external sources round-trip without loss.
Fields§
§node_type: Option<String>The kind of XML node this schema describes.
Introduced in OpenAPI 3.2, superseding attribute and
wrapped. One of element, attribute, text,
cdata or none.
name: Option<String>The name of the element or attribute.
namespace: Option<String>The URI of the XML namespace.
prefix: Option<String>The prefix to use for the element name.
attribute: Option<bool>Whether the property becomes an attribute rather than an element.
Deprecated in OpenAPI 3.2 in favour of node_type: "attribute", and
must not be combined with it.
wrapped: Option<bool>Whether an array is wrapped in a containing element.
Deprecated in OpenAPI 3.2 in favour of node_type: "element", and
must not be combined with it.
extensions: ExtensionsSpecification extensions.
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>,
impl Eq for Xml
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.