pub type QuotaTokenVariantValue = QuotaTokenValuePayload;Expand description
The payload carried by SchemaValue::QuotaToken.
A quota-token is an opaque, unforgeable capability. The representation differs by build target so that the value can never be inspected or fabricated by a guest:
- On the host (and in feature-neutral builds) it is the trusted internal
snapshot
QuotaTokenValuePayload, converted to/from an ownedquota-tokenhandle by aQuotaTokenResolverat the WIT boundary. - On a guest it is an opaque, affine, take-once owned handle
([
crate::schema::wit::GuestQuotaTokenHandle]) that the guest can only hold and transfer, never read.
Aliased Type§
pub struct QuotaTokenVariantValue {
pub environment_id: EnvironmentId,
pub resource_name: String,
pub expected_use: u64,
pub last_credit: i64,
pub last_credit_at: DateTime<Utc>,
}Fields§
§environment_id: EnvironmentId§resource_name: String§expected_use: u64§last_credit: i64§last_credit_at: DateTime<Utc>