Enum Content Part

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub enum ContentPart {
    Text {
        text: String,
    },
    ImageUrl {
        image_url: OpenAiImageUrl,
    },
}

A single content part within a multimodal message.

v1 supports text only. Future versions may add ImageUrl, Audio, etc.

Variants

Text

Text

A text content part.

Fields

text: String

The text content.

ImageUrl

ImageUrl

An image URL content part.

Fields

image_url: OpenAiImageUrl

Image URL payload.

Trait Implementations

impl Clone for ContentPart

impl Clone for ContentPart

clone

fn clone(&self) -> ContentPart

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for ContentPart

impl Debug for ContentPart

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for ContentPart

impl<'de> Deserialize<'de> for ContentPart

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl PartialEq for ContentPart

impl PartialEq for ContentPart

eq

fn eq(&self, other: &ContentPart) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for ContentPart

impl Serialize for ContentPart

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl StructuralPartialEq for ContentPart

impl StructuralPartialEq for ContentPart