pub struct ProjectionQuery {
pub end_time: Option<i64>,
}Expand description
Query parameters for the cost projection endpoint (#170): the window
is always a rolling 30 days ending at end_time (default: now).
Fields§
§end_time: Option<i64>As-of instant (nanoseconds since Unix epoch). The projection rolls back 30 days from here; defaults to now.
Trait Implementations§
Source§impl Debug for ProjectionQuery
impl Debug for ProjectionQuery
Source§impl<'de> Deserialize<'de> for ProjectionQuery
impl<'de> Deserialize<'de> for ProjectionQuery
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 ProjectionQuery
impl IntoParams for ProjectionQuery
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.Source§impl Serialize for ProjectionQuery
impl Serialize for ProjectionQuery
Auto Trait Implementations§
impl Freeze for ProjectionQuery
impl RefUnwindSafe for ProjectionQuery
impl Send for ProjectionQuery
impl Sync for ProjectionQuery
impl Unpin for ProjectionQuery
impl UnsafeUnpin for ProjectionQuery
impl UnwindSafe for ProjectionQuery
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