MessageContent

Type Alias MessageContent 

Source
pub type MessageContent = Content;
Expand description

Message content type alias.

Aliased Type§

pub enum MessageContent {
    Text {
        text: String,
    },
    Image {
        data: String,
        mime_type: String,
    },
    Resource {
        uri: String,
        text: Option<String>,
        mime_type: Option<String>,
    },
}

Variants§

§

Text

Text content

Fields

§text: String

The text content

§

Image

Image content

Fields

§data: String

Base64-encoded image data

§mime_type: String

MIME type (e.g., “image/png”)

§

Resource

Resource reference

Fields

§uri: String

Resource URI

§text: Option<String>

Optional resource content

§mime_type: Option<String>

MIME type