Skip to main content

IntoContent

Trait IntoContent 

Source
pub trait IntoContent {
    // Required method
    fn into_content(self) -> ContentBlock;
}
Expand description

Content that can appear in a message: &str, String (as text) and the specification’s content types.

Required Methods§

Source

fn into_content(self) -> ContentBlock

Performs the conversion.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoContent for &str

Source§

impl IntoContent for String

Implementors§