Struct auditor::client::QueryParameters
source · pub struct QueryParameters {
pub record_id: Option<String>,
pub start_time: Option<Operator>,
pub stop_time: Option<Operator>,
pub runtime: Option<Operator>,
pub meta: Option<MetaQuery>,
pub component: Option<ComponentQuery>,
pub sort_by: Option<SortBy>,
pub limit: Option<u64>,
}
Expand description
The QueryParameters
is used to build query parameters which allows to query records from
the database using advanced_query function.
Fields§
§record_id: Option<String>
Specifies the record id to query the exact record from the database
start_time: Option<Operator>
Specifies the start time for querying records. It uses the Operator
enum to
define time-based operations.
stop_time: Option<Operator>
Specifies the stop time for querying records. It uses the Operator
enum to
define time-based operations.
runtime: Option<Operator>
Specifies the runtime for querying records. It uses the Operator
enum to
define time-based operations.
meta: Option<MetaQuery>
Specifies the meta values for querying records. It uses the MetaOperator
enum to
define meta operations.
component: Option<ComponentQuery>
Specifies the start time for querying records. It uses the Operator
enum to
define component-based operations.
sort_by: Option<SortBy>
§limit: Option<u64>
Specifies the number of query records to be returned
Trait Implementations§
source§impl Clone for QueryParameters
impl Clone for QueryParameters
source§fn clone(&self) -> QueryParameters
fn clone(&self) -> QueryParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryParameters
impl Debug for QueryParameters
source§impl Default for QueryParameters
impl Default for QueryParameters
source§fn default() -> QueryParameters
fn default() -> QueryParameters
source§impl<'de> Deserialize<'de> for QueryParameters
impl<'de> Deserialize<'de> for QueryParameters
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>,
Auto Trait Implementations§
impl Freeze for QueryParameters
impl RefUnwindSafe for QueryParameters
impl Send for QueryParameters
impl Sync for QueryParameters
impl Unpin for QueryParameters
impl UnwindSafe for QueryParameters
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
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
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>
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