pub struct RequestFilter {Show 15 fields
pub instance_id: Option<Uuid>,
pub correlation_id: Option<i64>,
pub method: Option<String>,
pub uri_pattern: Option<String>,
pub status_code: Option<i32>,
pub status_code_min: Option<i32>,
pub status_code_max: Option<i32>,
pub timestamp_after: Option<DateTime<Utc>>,
pub timestamp_before: Option<DateTime<Utc>>,
pub min_duration_ms: Option<i64>,
pub max_duration_ms: Option<i64>,
pub body_parsed: Option<bool>,
pub limit: Option<i64>,
pub offset: Option<i64>,
pub order_by_timestamp_desc: bool,
}
Fields§
§instance_id: Option<Uuid>
§correlation_id: Option<i64>
§method: Option<String>
§uri_pattern: Option<String>
§status_code: Option<i32>
§status_code_min: Option<i32>
§status_code_max: Option<i32>
§timestamp_after: Option<DateTime<Utc>>
§timestamp_before: Option<DateTime<Utc>>
§min_duration_ms: Option<i64>
§max_duration_ms: Option<i64>
§body_parsed: Option<bool>
§limit: Option<i64>
§offset: Option<i64>
§order_by_timestamp_desc: bool
Implementations§
Source§impl RequestFilter
impl RequestFilter
pub fn build_query(&self) -> QueryBuilder<'_, Postgres>
Trait Implementations§
Source§impl Debug for RequestFilter
impl Debug for RequestFilter
Source§impl Default for RequestFilter
impl Default for RequestFilter
Source§fn default() -> RequestFilter
fn default() -> RequestFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestFilter
impl RefUnwindSafe for RequestFilter
impl Send for RequestFilter
impl Sync for RequestFilter
impl Unpin for RequestFilter
impl UnwindSafe for RequestFilter
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
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