pub struct PricingMetadata {
pub source: &'static str,
pub entry_count: usize,
pub last_fetched_unix_ms: Option<i64>,
pub last_failed_unix_ms: Option<i64>,
pub fallback_last_verified: &'static str,
pub source_url: &'static str,
pub license: &'static str,
pub disclaimer: &'static str,
pub filters_applied: Vec<String>,
}Expand description
Metadata about the pricing database currently in use by the server.
Fields§
§source: &'static str“litellm” when the upstream LiteLLM fetch has succeeded at least once; “fallback” when only the hardcoded Claude 4.x table is available.
entry_count: usizeNumber of entries in the active pricing database (0 for fallback-only).
last_fetched_unix_ms: Option<i64>Unix milliseconds of the last successful LiteLLM fetch, if any.
last_failed_unix_ms: Option<i64>Unix milliseconds of the last failed LiteLLM fetch, if any.
fallback_last_verified: &'static strDate the hardcoded Claude 4.x fallback table was last verified against Anthropic’s list rates.
source_url: &'static strURL to the LiteLLM source file for attribution / deep-linking.
license: &'static strMIT-license acknowledgement for the LiteLLM data.
disclaimer: &'static strUser-facing disclaimer text — safe to render inline.
filters_applied: Vec<String>Filter dimensions the endpoint actually applied (global filter bar, #135)
Trait Implementations§
Source§impl Clone for PricingMetadata
impl Clone for PricingMetadata
Source§impl Debug for PricingMetadata
impl Debug for PricingMetadata
Source§impl Serialize for PricingMetadata
impl Serialize for PricingMetadata
Auto Trait Implementations§
impl Freeze for PricingMetadata
impl RefUnwindSafe for PricingMetadata
impl Send for PricingMetadata
impl Sync for PricingMetadata
impl Unpin for PricingMetadata
impl UnsafeUnpin for PricingMetadata
impl UnwindSafe for PricingMetadata
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