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.
TextText
A text content part.
text: StringThe text content.
ImageUrlImageUrl
An image URL content part.
image_url: OpenAiImageUrlImage URL payload.
impl Clone for ContentPartimpl Clone for ContentPart
clonefn clone(&self) -> ContentPart
clone_fromfn clone_from(&mut self, source: &Self)
impl Debug for ContentPartimpl Debug for ContentPart
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for ContentPartimpl<'de> Deserialize<'de> for ContentPart
deserializefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for ContentPartimpl PartialEq for ContentPart
eqfn eq(&self, other: &ContentPart) -> bool
nefn ne(&self, other: &Rhs) -> bool
impl Serialize for ContentPartimpl Serialize for ContentPart
serializefn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for ContentPartimpl StructuralPartialEq for ContentPart