ReferenceSdkRustTypes
BinaryContent
Rust struct goodmem::models::BinaryContent: declaration, fields or variants, and implementations.
Struct BinaryContent
goodmem::models::BinaryContent
Binary content with MIME type for context items.
pub struct BinaryContent {
pub content_type: String,
pub data: String,
}Fields
content_type
pub content_type: String
MIME type of the binary content.
Wire name: contentType.
data
pub data: String
Base64-encoded binary data.
Wire name: data.
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 BinaryContentimpl std::fmt::Debug for BinaryContent