pub struct PlatformEconomics {
pub revenue: PlatformEconomicsRevenue,
pub costs: PlatformEconomicsCosts,
pub llm: PlatformEconomicsLLM,
pub economics: PlatformEconomicsEconomics,
pub generated_at: String,
pub cache: PlatformEconomicsCache,
}Expand description
Platform profit and loss: Stripe revenue against real host spend and the LLM provider bill.
Super-admin only. Served from a short-lived cache — cache says which.
Fields§
§revenue: PlatformEconomicsRevenue§costs: PlatformEconomicsCosts§llm: PlatformEconomicsLLMWhat the platform paid model providers for tokens, from the usage shards’ pre-markup
provider_cost summed over every tenant. The largest variable cost; absent from this report
until 2026-09-02.
economics: PlatformEconomicsEconomics§generated_at: String§cache: PlatformEconomicsCachehit — served from cache; miss — computed and cached; bypass — recomputed because
refresh=1.
Trait Implementations§
Source§impl Clone for PlatformEconomics
impl Clone for PlatformEconomics
Source§fn clone(&self) -> PlatformEconomics
fn clone(&self) -> PlatformEconomics
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 moreSource§impl Debug for PlatformEconomics
impl Debug for PlatformEconomics
Source§impl Default for PlatformEconomics
impl Default for PlatformEconomics
Source§fn default() -> PlatformEconomics
fn default() -> PlatformEconomics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlatformEconomics
impl<'de> Deserialize<'de> for PlatformEconomics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlatformEconomics
impl PartialEq for PlatformEconomics
Source§impl Serialize for PlatformEconomics
impl Serialize for PlatformEconomics
impl StructuralPartialEq for PlatformEconomics
Auto Trait Implementations§
impl Freeze for PlatformEconomics
impl RefUnwindSafe for PlatformEconomics
impl Send for PlatformEconomics
impl Sync for PlatformEconomics
impl Unpin for PlatformEconomics
impl UnsafeUnpin for PlatformEconomics
impl UnwindSafe for PlatformEconomics
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