pub struct CacheControl {
pub kind: &'static str,
pub ttl: Option<&'static str>,
}Expand description
cache_control payload — currently always ephemeral. The Anthropic
API also accepts {"type": "ephemeral", "ttl": "1h"}; we expose
that via [CacheTtl] in crate::config.
Fields§
§kind: &'static str§ttl: Option<&'static str>Implementations§
Source§impl CacheControl
impl CacheControl
pub fn ephemeral() -> Self
pub fn ephemeral_1h() -> Self
Trait Implementations§
Source§impl Debug for CacheControl
impl Debug for CacheControl
Auto Trait Implementations§
impl Freeze for CacheControl
impl RefUnwindSafe for CacheControl
impl Send for CacheControl
impl Sync for CacheControl
impl Unpin for CacheControl
impl UnsafeUnpin for CacheControl
impl UnwindSafe for CacheControl
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