Struct pact_models::content_types::TEXT [−][src]
pub struct TEXT { /* fields omitted */ }
TEXT Content Type
Methods from Deref<Target = ContentType>
pub fn is_json(&self) -> bool
[src]
If it is a JSON type
pub fn is_xml(&self) -> bool
[src]
If it is a XML type
pub fn is_strict_xml(&self) -> bool
[src]
If it is a XML type (not including ones with suffixes like atom+xml)
pub fn is_text(&self) -> bool
[src]
If it is a text type
pub fn is_binary(&self) -> bool
[src]
If it is a known binary type
pub fn base_type(&self) -> ContentType
[src]
Returns the base type with no attributes or suffix
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]
Equals, ignoring attributes if not present on self
Trait Implementations
impl Deref for TEXT
[src]
impl Deref for TEXT
[src]type Target = ContentType
The resulting type after dereferencing.
fn deref(&self) -> &ContentType
[src]
impl LazyStatic for TEXT
[src]
impl LazyStatic for TEXT
[src]fn initialize(lazy: &Self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for TEXT
impl RefUnwindSafe for TEXT
impl UnwindSafe for TEXT
impl UnwindSafe for TEXT