Struct evcxr_runtime::ContentMimeType[][src]

pub struct ContentMimeType { /* fields omitted */ }

Represents a mime type for some content that is yet to be emitted.

Methods

impl ContentMimeType
[src]

Emits the supplied content, which should be of the mime type already specified. If the type is a binary format (e.g. image/png), the content should have already been base64 encoded.

evcxr_runtime::mime_type("text/html")
    .text("<span style=\"color: red\">>Hello world</span>");

Auto Trait Implementations