pub struct FlowQuery {
pub host: Option<String>,
pub path_contains: Option<String>,
pub method: Option<String>,
pub status_min: Option<u16>,
pub status_max: Option<u16>,
pub has_error: Option<bool>,
pub is_websocket: Option<bool>,
pub limit: Option<usize>,
pub offset: Option<usize>,
}Expand description
流量搜索条件,所有字段可选,多条件为 AND 关系。
Fields§
§host: Option<String>主机名过滤(子串匹配)
path_contains: Option<String>路径过滤(子串匹配)
method: Option<String>HTTP 方法过滤(大写,如 “GET”、“POST”)
status_min: Option<u16>状态码下限(含)
status_max: Option<u16>状态码上限(含)
has_error: Option<bool>仅返回含错误的流量
is_websocket: Option<bool>仅返回 WebSocket 流量
limit: Option<usize>返回条数上限,默认 50
offset: Option<usize>结果偏移量,默认 0
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlowQuery
impl<'de> Deserialize<'de> for FlowQuery
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FlowQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FlowQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for FlowQuery
impl Serialize for FlowQuery
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for FlowQuery
impl RefUnwindSafe for FlowQuery
impl Send for FlowQuery
impl Sync for FlowQuery
impl Unpin for FlowQuery
impl UnsafeUnpin for FlowQuery
impl UnwindSafe for FlowQuery
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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