Enum Cache Read Accounting

View as MarkdownOpen in Claude

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

1pub enum CacheReadAccounting {
2 IncludedInPromptTokens,
3 Separate,
4}

How cache-read tokens relate to prompt token counts in provider usage.

Variants

IncludedInPromptTokens

IncludedInPromptTokens

cache_read_tokens are already included in prompt_tokens.

Separate

Separate

cache_read_tokens are separate from prompt_tokens.

Trait Implementations

impl Clone for CacheReadAccounting

impl Clone for CacheReadAccounting

clone

fn clone(&self) -> CacheReadAccounting

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for CacheReadAccounting

impl Debug for CacheReadAccounting

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for CacheReadAccounting

impl<'de> Deserialize<'de> for CacheReadAccounting

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl PartialEq for CacheReadAccounting

impl PartialEq for CacheReadAccounting

eq

fn eq(&self, other: &CacheReadAccounting) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for CacheReadAccounting

impl Serialize for CacheReadAccounting

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl Copy for CacheReadAccounting

impl Copy for CacheReadAccounting

impl Eq for CacheReadAccounting

impl Eq for CacheReadAccounting

impl StructuralPartialEq for CacheReadAccounting

impl StructuralPartialEq for CacheReadAccounting