pub struct XmlMetadata { /* private fields */ }Expand description
XML-specific information attached to a structured HTTP payload member.
The payload schema retains the target’s metadata and members, with its XML root name overridden by the payload member. Other protocols use the ordinary target schema. Each generated payload schema owns its codec cache.
Implementations§
Source§impl XmlMetadata
impl XmlMetadata
Sourcepub const fn new(payload_schema: &'static Schema<'static>) -> Self
pub const fn new(payload_schema: &'static Schema<'static>) -> Self
Creates metadata referring to a prebuilt XML payload schema.
Sourcepub const fn payload_schema(&self) -> &'static Schema<'static>
pub const fn payload_schema(&self) -> &'static Schema<'static>
Returns the target schema with the payload member’s XML root name.
Sourcepub fn from_schema<'s>(schema: &'s Schema<'_>) -> Option<&'s Self>
pub fn from_schema<'s>(schema: &'s Schema<'_>) -> Option<&'s Self>
Reads XML metadata from a payload member’s trait map.
Trait Implementations§
Source§impl Clone for XmlMetadata
impl Clone for XmlMetadata
Source§fn clone(&self) -> XmlMetadata
fn clone(&self) -> XmlMetadata
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 XmlMetadata
impl Debug for XmlMetadata
Source§impl Trait for XmlMetadata
impl Trait for XmlMetadata
impl Copy for XmlMetadata
Auto Trait Implementations§
impl Freeze for XmlMetadata
impl !RefUnwindSafe for XmlMetadata
impl Send for XmlMetadata
impl Sync for XmlMetadata
impl Unpin for XmlMetadata
impl UnsafeUnpin for XmlMetadata
impl !UnwindSafe for XmlMetadata
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.