pub enum BetaFeature {
PromptCaching20240731,
ExtendedCacheTtl20250411,
TokenCounting20241101,
Other(String),
}Expand description
Known Anthropic beta features
See the Anthropic API documentation for details on each feature.
Variants§
PromptCaching20240731
Prompt caching (2024-07-31)
ExtendedCacheTtl20250411
Extended cache TTL (2025-04-11)
TokenCounting20241101
Token counting (2024-11-01)
Other(String)
Custom beta feature string
Trait Implementations§
Source§impl Clone for BetaFeature
impl Clone for BetaFeature
Source§fn clone(&self) -> BetaFeature
fn clone(&self) -> BetaFeature
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BetaFeature
impl Debug for BetaFeature
Source§impl From<BetaFeature> for String
impl From<BetaFeature> for String
Source§fn from(b: BetaFeature) -> Self
fn from(b: BetaFeature) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BetaFeature
impl PartialEq for BetaFeature
impl Eq for BetaFeature
impl StructuralPartialEq for BetaFeature
Auto Trait Implementations§
impl Freeze for BetaFeature
impl RefUnwindSafe for BetaFeature
impl Send for BetaFeature
impl Sync for BetaFeature
impl Unpin for BetaFeature
impl UnwindSafe for BetaFeature
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