Struct BedrockCachePoint
pub struct BedrockCachePoint {
pub ttl: Option<BedrockCacheTtl>,
}Expand description
One Bedrock Converse cache point.
Bedrock’s minimum cacheable prefix varies by model, currently from 512 to 4,096 tokens. This adapter does not estimate token counts or reject short prefixes; Bedrock accepts those requests but does not write a cache entry.
Fields§
§ttl: Option<BedrockCacheTtl>Optional cache TTL. Omission uses Bedrock’s default five-minute lifetime.
Trait Implementations§
§impl Clone for BedrockCachePoint
impl Clone for BedrockCachePoint
§fn clone(&self) -> BedrockCachePoint
fn clone(&self) -> BedrockCachePoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for BedrockCachePoint
impl Debug for BedrockCachePoint
§impl Default for BedrockCachePoint
impl Default for BedrockCachePoint
§fn default() -> BedrockCachePoint
fn default() -> BedrockCachePoint
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for BedrockCachePoint
impl<'de> Deserialize<'de> for BedrockCachePoint
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BedrockCachePoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BedrockCachePoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BedrockCachePoint
§impl PartialEq for BedrockCachePoint
impl PartialEq for BedrockCachePoint
§fn eq(&self, other: &BedrockCachePoint) -> bool
fn eq(&self, other: &BedrockCachePoint) -> bool
Tests for
self and other values to be equal, and is used by ==.§impl Serialize for BedrockCachePoint
impl Serialize for BedrockCachePoint
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BedrockCachePoint
Auto Trait Implementations§
impl Freeze for BedrockCachePoint
impl RefUnwindSafe for BedrockCachePoint
impl Send for BedrockCachePoint
impl Sync for BedrockCachePoint
impl Unpin for BedrockCachePoint
impl UnsafeUnpin for BedrockCachePoint
impl UnwindSafe for BedrockCachePoint
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