#[non_exhaustive]pub struct ReportUsageAdminArgs {
pub dimensions: Vec<String>,
pub deltas: Vec<u64>,
pub dedup_key: Option<String>,
pub now: TimestampMs,
}Expand description
Inputs to EngineBackend::report_usage_admin (RFC-017 §5 budget+
quota admin §5, round-1 F4). Admin-path peer of report_usage —
both wrap ff_report_usage_and_check on the Valkey side but the
admin call is worker-less, so it cannot reuse the lease-bound
report_usage(&Handle, ...) signature. ReportUsageAdminArgs
carries the same fields as ReportUsageArgs without a worker
handle — kept as a distinct type so future admin-only fields (e.g.
actor_identity, audit_reason) don’t pollute the worker path.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.dimensions: Vec<String>§deltas: Vec<u64>§dedup_key: Option<String>§now: TimestampMsImplementations§
Source§impl ReportUsageAdminArgs
impl ReportUsageAdminArgs
pub fn new(dimensions: Vec<String>, deltas: Vec<u64>, now: TimestampMs) -> Self
pub fn with_dedup_key(self, key: String) -> Self
Trait Implementations§
Source§impl Clone for ReportUsageAdminArgs
impl Clone for ReportUsageAdminArgs
Source§fn clone(&self) -> ReportUsageAdminArgs
fn clone(&self) -> ReportUsageAdminArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReportUsageAdminArgs
impl RefUnwindSafe for ReportUsageAdminArgs
impl Send for ReportUsageAdminArgs
impl Sync for ReportUsageAdminArgs
impl Unpin for ReportUsageAdminArgs
impl UnsafeUnpin for ReportUsageAdminArgs
impl UnwindSafe for ReportUsageAdminArgs
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