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<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
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<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