Struct pact_models::content_types::HTML[][src]

pub struct HTML { /* fields omitted */ }
Expand description

HTML Content Type

Methods from Deref<Target = ContentType>

If it is a JSON type

If it is a XML type

If it is a XML type (not including ones with suffixes like atom+xml)

If it is a text type

If it is a known binary type

Returns the base type with no attributes or suffix

If the content type is the default type

Equals, ignoring attributes if not present on self

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.