ReferenceSdkRustTypes
ContextItem
Rust struct goodmem::models::ContextItem: declaration, fields or variants, and implementations.
Struct ContextItem
goodmem::models::ContextItem
Context item with either text or binary content.
pub struct ContextItem {
pub text: Option<String>,
pub binary: Option<Box<BinaryContent>>,
}Referenced types: BinaryContent.
Fields
text
pub text: Option<String>
Text content for this context item.
Wire name: text.
binary
pub binary: Option<Box<BinaryContent>>
Binary content for this context item.
Wire name: binary.
Implementations
validate
pub fn validate(&self) -> crate::Result<()>
Validate the request before sending, without making an HTTP call.
Trait implementations
Clone(derived)Default(derived)PartialEq(derived)Serialize(derived)impl<'de> Deserialize<'de> for ContextItemimpl std::fmt::Debug for ContextItem