pub struct OperatorReportQuery {Show 15 fields
pub capability_id: Option<String>,
pub agent_subject: Option<String>,
pub tool_server: Option<String>,
pub tool_name: Option<String>,
pub since: Option<u64>,
pub until: Option<u64>,
pub group_limit: Option<usize>,
pub time_bucket: Option<AnalyticsTimeBucket>,
pub attribution_limit: Option<usize>,
pub budget_limit: Option<usize>,
pub settlement_limit: Option<usize>,
pub metered_limit: Option<usize>,
pub authorization_limit: Option<usize>,
pub economic_limit: Option<usize>,
pub read_context: Option<ReceiptReadContext>,
}Expand description
Filter surface for the operator-facing reporting API.
Fields§
§capability_id: Option<String>§agent_subject: Option<String>§tool_server: Option<String>§tool_name: Option<String>§since: Option<u64>§until: Option<u64>§group_limit: Option<usize>§time_bucket: Option<AnalyticsTimeBucket>§attribution_limit: Option<usize>§budget_limit: Option<usize>§settlement_limit: Option<usize>§metered_limit: Option<usize>§economic_limit: Option<usize>§read_context: Option<ReceiptReadContext>Auth-derived read authority. This is never accepted from request bodies.
Implementations§
Source§impl OperatorReportQuery
impl OperatorReportQuery
pub fn to_receipt_analytics_query(&self) -> ReceiptAnalyticsQuery
Sourcepub fn to_exposure_ledger_query(&self) -> ExposureLedgerQuery
pub fn to_exposure_ledger_query(&self) -> ExposureLedgerQuery
Project the shared operator filters into an exposure-ledger query.
Every field is constructed explicitly so that a newly added ExposureLedgerQuery
field fails to compile here rather than being silently omitted.
pub fn to_cost_attribution_query(&self) -> CostAttributionQuery
pub fn to_evidence_export_query(&self) -> Result<EvidenceExportQuery, String>
pub fn direct_evidence_export_supported(&self) -> bool
pub fn budget_limit_or_default(&self) -> usize
pub fn settlement_limit_or_default(&self) -> usize
pub fn metered_limit_or_default(&self) -> usize
pub fn economic_limit_or_default(&self) -> usize
Trait Implementations§
Source§impl Clone for OperatorReportQuery
impl Clone for OperatorReportQuery
Source§fn clone(&self) -> OperatorReportQuery
fn clone(&self) -> OperatorReportQuery
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 OperatorReportQuery
impl Debug for OperatorReportQuery
Source§impl Default for OperatorReportQuery
impl Default for OperatorReportQuery
Source§impl<'de> Deserialize<'de> for OperatorReportQuery
impl<'de> Deserialize<'de> for OperatorReportQuery
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
impl Eq for OperatorReportQuery
Source§impl PartialEq for OperatorReportQuery
impl PartialEq for OperatorReportQuery
Source§impl Serialize for OperatorReportQuery
impl Serialize for OperatorReportQuery
impl StructuralPartialEq for OperatorReportQuery
Auto Trait Implementations§
impl Freeze for OperatorReportQuery
impl RefUnwindSafe for OperatorReportQuery
impl Send for OperatorReportQuery
impl Sync for OperatorReportQuery
impl Unpin for OperatorReportQuery
impl UnsafeUnpin for OperatorReportQuery
impl UnwindSafe for OperatorReportQuery
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more