pub enum BetaHeader {
Show 24 variants
MessageBatches,
PromptCaching,
ComputerUse20241022,
ComputerUse20250124,
Pdfs,
TokenCounting,
TokenEfficientTools,
Output128k,
FilesApi,
McpClient20250404,
McpClient20251120,
DevFullThinking,
InterleavedThinking,
CodeExecution,
ExtendedCacheTtl,
Context1m,
ContextManagement,
ModelContextWindowExceeded,
Skills,
FastMode,
Output300k,
UserProfiles,
AdvisorTool,
Other(String),
}Expand description
Canonical Anthropic beta header values.
This list is derived from the public API reference and may grow
over time. New values added by the API will deserialize into
Self::Other until this enum is updated.
Variants§
MessageBatches
message-batches-2024-09-24
PromptCaching
prompt-caching-2024-07-31
ComputerUse20241022
computer-use-2024-10-22
ComputerUse20250124
computer-use-2025-01-24
Pdfs
pdfs-2024-09-25
TokenCounting
token-counting-2024-11-01
TokenEfficientTools
token-efficient-tools-2025-02-19
Output128k
output-128k-2025-02-19
FilesApi
files-api-2025-04-14
McpClient20250404
mcp-client-2025-04-04
McpClient20251120
mcp-client-2025-11-20
DevFullThinking
dev-full-thinking-2025-05-14
InterleavedThinking
interleaved-thinking-2025-05-14
CodeExecution
code-execution-2025-05-22
ExtendedCacheTtl
extended-cache-ttl-2025-04-11
Context1m
context-1m-2025-08-07
ContextManagement
context-management-2025-06-27
ModelContextWindowExceeded
model-context-window-exceeded-2025-08-26
Skills
skills-2025-10-02
FastMode
fast-mode-2026-02-01
Output300k
output-300k-2026-03-24
UserProfiles
user-profiles-2026-03-24
AdvisorTool
advisor-tool-2026-03-01
Other(String)
Forward-compat fallback for beta headers added by Anthropic after this enum was last updated. Round-trips byte-for-byte.
Implementations§
Source§impl BetaHeader
impl BetaHeader
Trait Implementations§
Source§impl Clone for BetaHeader
impl Clone for BetaHeader
Source§fn clone(&self) -> BetaHeader
fn clone(&self) -> BetaHeader
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BetaHeader
impl Debug for BetaHeader
Source§impl<'de> Deserialize<'de> for BetaHeader
impl<'de> Deserialize<'de> for BetaHeader
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Source§impl Display for BetaHeader
impl Display for BetaHeader
Source§impl From<&BetaHeader> for String
impl From<&BetaHeader> for String
Source§fn from(b: &BetaHeader) -> Self
fn from(b: &BetaHeader) -> Self
Source§impl From<&str> for BetaHeader
impl From<&str> for BetaHeader
Source§impl From<BetaHeader> for String
impl From<BetaHeader> for String
Source§fn from(b: BetaHeader) -> Self
fn from(b: BetaHeader) -> Self
Source§impl From<String> for BetaHeader
impl From<String> for BetaHeader
Source§impl Hash for BetaHeader
impl Hash for BetaHeader
Source§impl PartialEq for BetaHeader
impl PartialEq for BetaHeader
Source§impl Serialize for BetaHeader
impl Serialize for BetaHeader
impl Eq for BetaHeader
impl StructuralPartialEq for BetaHeader
Auto Trait Implementations§
impl Freeze for BetaHeader
impl RefUnwindSafe for BetaHeader
impl Send for BetaHeader
impl Sync for BetaHeader
impl Unpin for BetaHeader
impl UnsafeUnpin for BetaHeader
impl UnwindSafe for BetaHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.