pub struct ItemMeta {
pub cache_control: Vec<Option<Value>>,
pub name: Option<String>,
pub extra: Map<String, Value>,
}Fields§
§cache_control: Vec<Option<Value>>Per-block cache-control markers (Anthropic cache_control ephemeral
breakpoints). Parallel-indexed with the original content items.
name: Option<String>OpenAI-only name field.
extra: Map<String, Value>Anything the dialect layer couldn’t express as a typed item. Dropped by dialects that don’t understand them.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ItemMeta
impl<'de> Deserialize<'de> for ItemMeta
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 StructuralPartialEq for ItemMeta
Auto Trait Implementations§
impl Freeze for ItemMeta
impl RefUnwindSafe for ItemMeta
impl Send for ItemMeta
impl Sync for ItemMeta
impl Unpin for ItemMeta
impl UnsafeUnpin for ItemMeta
impl UnwindSafe for ItemMeta
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