pub struct ModelPerformanceQueryParams {
pub start_time: i64,
pub end_time: i64,
pub rolling_ns: Option<i64>,
pub model: Option<String>,
pub provider: Option<String>,
pub timezone: Option<String>,
}Expand description
Query parameters for the model-performance diagnosis endpoint (#121/#153). The current interval is explicit and required; the rolling baseline is a length, placed immediately before the derived preceding window so it can never overlap either comparison window.
Fields§
§start_time: i64Start of the current interval (nanoseconds since Unix epoch)
end_time: i64End of the current interval (nanoseconds since Unix epoch)
rolling_ns: Option<i64>Rolling baseline length in nanoseconds; the baseline sits immediately before the derived preceding window. Omit to disable it.
model: Option<String>Model name filter
provider: Option<String>Provider filter
timezone: Option<String>IANA timezone echoed back for calendar alignment (e.g. Europe/London)
Trait Implementations§
Source§impl Debug for ModelPerformanceQueryParams
impl Debug for ModelPerformanceQueryParams
Source§impl<'de> Deserialize<'de> for ModelPerformanceQueryParams
impl<'de> Deserialize<'de> for ModelPerformanceQueryParams
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
Source§impl IntoParams for ModelPerformanceQueryParams
impl IntoParams for ModelPerformanceQueryParams
Source§fn into_params(
parameter_in_provider: impl Fn() -> Option<ParameterIn>,
) -> Vec<Parameter>
fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn>, ) -> Vec<Parameter>
Provide
Vec of openapi::path::Parameters to caller. The result is used in utoipa-gen library to
provide OpenAPI parameter information for the endpoint using the parameters.Auto Trait Implementations§
impl Freeze for ModelPerformanceQueryParams
impl RefUnwindSafe for ModelPerformanceQueryParams
impl Send for ModelPerformanceQueryParams
impl Sync for ModelPerformanceQueryParams
impl Unpin for ModelPerformanceQueryParams
impl UnsafeUnpin for ModelPerformanceQueryParams
impl UnwindSafe for ModelPerformanceQueryParams
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