Struct pact_models::content_types::XML
source · pub struct XML { /* private fields */ }
Expand description
XML Content Type
Methods from Deref<Target = ContentType>§
sourcepub fn is_strict_xml(&self) -> bool
pub fn is_strict_xml(&self) -> bool
If it is a XML type (not including ones with suffixes like atom+xml)
sourcepub fn base_type(&self) -> ContentType
pub fn base_type(&self) -> ContentType
Returns the base type with no attributes or suffix
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
If the content type is the default type
sourcepub fn is_equivalent_to(&self, other: &ContentType) -> bool
pub fn is_equivalent_to(&self, other: &ContentType) -> bool
Equals, ignoring attributes if not present on self
Trait Implementations§
source§impl Deref for XML
impl Deref for XML
§type Target = ContentType
type Target = ContentType
The resulting type after dereferencing.
source§fn deref(&self) -> &ContentType
fn deref(&self) -> &ContentType
Dereferences the value.
impl LazyStatic 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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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 more