pub struct EventQuery {
pub name: Option<String>,
pub topic: Option<String>,
pub source_module: Option<String>,
pub tags: Vec<String>,
pub search: Option<String>,
pub limit: Option<usize>,
pub offset: Option<usize>,
}Expand description
事件查询过滤器。
Fields§
§name: Option<String>按事件名称过滤(支持精确匹配或 * 前缀匹配)。
topic: Option<String>按主题过滤。
source_module: Option<String>按来源模块过滤。
按标签过滤(匹配任意一个)。
search: Option<String>文本搜索(在事件名称和描述中搜索)。
limit: Option<usize>最大返回数量。
offset: Option<usize>分页偏移。
Trait Implementations§
Source§impl Clone for EventQuery
impl Clone for EventQuery
Source§fn clone(&self) -> EventQuery
fn clone(&self) -> EventQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventQuery
impl Debug for EventQuery
Source§impl Default for EventQuery
impl Default for EventQuery
Source§fn default() -> EventQuery
fn default() -> EventQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventQuery
impl<'de> Deserialize<'de> for EventQuery
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 EventQuery
impl RefUnwindSafe for EventQuery
impl Send for EventQuery
impl Sync for EventQuery
impl Unpin for EventQuery
impl UnsafeUnpin for EventQuery
impl UnwindSafe for EventQuery
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