struct ModeledSourceGroup {
label: &'static str,
compact_label: &'static str,
meaning: &'static str,
compact_meaning: &'static str,
icon: &'static str,
steps: usize,
gross_tokens: isize,
}Expand description
Real modeled source bucket aggregated for display.
Fields§
§label: &'static strFull-width row label.
compact_label: &'static strNarrow-width row label.
meaning: &'static strFull-width row explanation.
compact_meaning: &'static strNarrow-width row explanation.
icon: &'static strCompact source icon.
steps: usizeNumber of telemetry calls in the group.
gross_tokens: isizeGross saved-token contribution before headline dedupe allocation.
Implementations§
Source§impl ModeledSourceGroup
impl ModeledSourceGroup
Sourceconst fn new(
label: &'static str,
compact_label: &'static str,
meaning: &'static str,
compact_meaning: &'static str,
icon: &'static str,
) -> Self
const fn new( label: &'static str, compact_label: &'static str, meaning: &'static str, compact_meaning: &'static str, icon: &'static str, ) -> Self
Build an empty display group.
Sourcefn add_bucket(&mut self, bucket: &TokenBucketOverview)
fn add_bucket(&mut self, bucket: &TokenBucketOverview)
Add one telemetry bucket to the group.
Auto Trait Implementations§
impl Freeze for ModeledSourceGroup
impl RefUnwindSafe for ModeledSourceGroup
impl Send for ModeledSourceGroup
impl Sync for ModeledSourceGroup
impl Unpin for ModeledSourceGroup
impl UnwindSafe for ModeledSourceGroup
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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