Struct pact_models::content_types::HTML
source · [−]pub struct HTML { /* private fields */ }
Expand description
HTML 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
sourceimpl Deref for HTML
impl Deref for HTML
type Target = ContentType
type Target = ContentType
The resulting type after dereferencing.
sourcefn deref(&self) -> &ContentType
fn deref(&self) -> &ContentType
Dereferences the value.
impl LazyStatic for HTML
Auto Trait Implementations
impl RefUnwindSafe for HTML
impl Send for HTML
impl Sync for HTML
impl Unpin for HTML
impl UnwindSafe for HTML
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more