TextResponseFormat

Trait TextResponseFormat 

Source
pub trait TextResponseFormat {
    // Required method
    fn format() -> &'static str;
}
Expand description

A format of a response text.

Required Methods§

Source

fn format() -> &'static str

Returns the format type as a request parameter.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TextResponseFormat for String

Source§

fn format() -> &'static str

Source§

impl TextResponseFormat for SubRip

Source§

fn format() -> &'static str

Source§

impl TextResponseFormat for WebVtt

Source§

fn format() -> &'static str

Implementors§