pub struct SystemBlock {
pub kind: &'static str,
pub text: String,
pub cache_control: Option<CacheControl>,
}Expand description
One block of an Anthropic system array.
We only ever send type: "text". The cache_control field is
conditionally serialized — when None, it’s omitted from the wire
JSON (skip_serializing_if), so a non-cached request and a cached
request produce different bytes — that difference is the cache
key.
Fields§
§kind: &'static str§text: String§cache_control: Option<CacheControl>Trait Implementations§
Source§impl Debug for SystemBlock
impl Debug for SystemBlock
Auto Trait Implementations§
impl Freeze for SystemBlock
impl RefUnwindSafe for SystemBlock
impl Send for SystemBlock
impl Sync for SystemBlock
impl Unpin for SystemBlock
impl UnsafeUnpin for SystemBlock
impl UnwindSafe for SystemBlock
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