#[non_exhaustive]pub struct ModelVisibleContent {
pub content_type: String,
pub source_tool_name: String,
pub path: String,
pub media_type: String,
pub width: Option<u32>,
pub height: Option<u32>,
}Expand description
Rich content the model saw beyond text: metadata only — fetch bytes via
item/readOutput when an outputRef exists.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.content_type: StringContent type, "image" in v1 (free string, grows with the durable
vocabulary).
source_tool_name: StringThe tool that produced the content.
path: StringThe recorded content path.
media_type: StringThe content media type.
width: Option<u32>Pixel width, when known.
height: Option<u32>Pixel height, when known.
Trait Implementations§
Source§impl Clone for ModelVisibleContent
impl Clone for ModelVisibleContent
Source§impl Debug for ModelVisibleContent
impl Debug for ModelVisibleContent
Source§impl<'de> Deserialize<'de> for ModelVisibleContent
impl<'de> Deserialize<'de> for ModelVisibleContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelVisibleContent
Source§impl PartialEq for ModelVisibleContent
impl PartialEq for ModelVisibleContent
Source§impl Serialize for ModelVisibleContent
impl Serialize for ModelVisibleContent
impl StructuralPartialEq for ModelVisibleContent
Auto Trait Implementations§
impl Freeze for ModelVisibleContent
impl RefUnwindSafe for ModelVisibleContent
impl Send for ModelVisibleContent
impl Sync for ModelVisibleContent
impl Unpin for ModelVisibleContent
impl UnsafeUnpin for ModelVisibleContent
impl UnwindSafe for ModelVisibleContent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more