Struct pact_models::content_types::JSON [−][src]
pub struct JSON { /* fields omitted */ }
Expand description
JSON Content Type
Methods from Deref<Target = ContentType>
pub fn is_strict_xml(&self) -> bool
[src]
pub fn is_strict_xml(&self) -> bool
[src]If it is a XML type (not including ones with suffixes like atom+xml)
pub fn base_type(&self) -> ContentType
[src]
pub fn base_type(&self) -> ContentType
[src]Returns the base type with no attributes or suffix
pub fn is_unknown(&self) -> bool
[src]
pub fn is_unknown(&self) -> bool
[src]If the content type is the default type
pub fn is_equivalent_to(&self, other: &ContentType) -> bool
[src]
pub fn is_equivalent_to(&self, other: &ContentType) -> bool
[src]Equals, ignoring attributes if not present on self
Trait Implementations
impl Deref for JSON
[src]
impl Deref for JSON
[src]type Target = ContentType
type Target = ContentType
The resulting type after dereferencing.
fn deref(&self) -> &ContentType
[src]
fn deref(&self) -> &ContentType
[src]Dereferences the value.
impl LazyStatic for JSON
[src]
impl LazyStatic for JSON
[src]