pub struct SurfaceReduction {
pub original_count: usize,
pub reduced_count: usize,
pub original_tokens: usize,
pub reduced_tokens: usize,
pub tokens_saved: usize,
pub savings_pct: f64,
pub selected_tools: Vec<String>,
pub removed_tools: Vec<String>,
}Expand description
Metrics and tool names produced by surface optimization.
Fields§
§original_count: usizeNumber of schemas before optimization.
reduced_count: usizeNumber of selected schemas.
original_tokens: usizeCombined schema tokens before optimization.
reduced_tokens: usizeCombined tokens for selected schemas.
tokens_saved: usizeTokens removed from the client-visible surface.
savings_pct: f64Percentage of original schema tokens removed.
selected_tools: Vec<String>Selected tool names in selection order.
removed_tools: Vec<String>Removed tool names in original order.
Trait Implementations§
Source§impl Clone for SurfaceReduction
impl Clone for SurfaceReduction
Source§fn clone(&self) -> SurfaceReduction
fn clone(&self) -> SurfaceReduction
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 moreAuto Trait Implementations§
impl Freeze for SurfaceReduction
impl RefUnwindSafe for SurfaceReduction
impl Send for SurfaceReduction
impl Sync for SurfaceReduction
impl Unpin for SurfaceReduction
impl UnsafeUnpin for SurfaceReduction
impl UnwindSafe for SurfaceReduction
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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