pub struct QueryOpInfo {
pub key_word_like_fields: Vec<String>,
pub field_eq: Vec<String>,
pub field_like: Vec<String>,
pub order_by: Vec<(String, bool)>,
}Expand description
查询配置(精简版)
只保留在前端和 EPS 中需要关注的部分。
Fields§
§key_word_like_fields: Vec<String>关键字模糊查询字段
field_eq: Vec<String>字段相等查询
field_like: Vec<String>字段模糊查询
order_by: Vec<(String, bool)>排序配置:(字段名, 是否升序)
Trait Implementations§
Source§impl Clone for QueryOpInfo
impl Clone for QueryOpInfo
Source§fn clone(&self) -> QueryOpInfo
fn clone(&self) -> QueryOpInfo
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 QueryOpInfo
impl Debug for QueryOpInfo
Source§impl Default for QueryOpInfo
impl Default for QueryOpInfo
Source§fn default() -> QueryOpInfo
fn default() -> QueryOpInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QueryOpInfo
impl<'de> Deserialize<'de> for QueryOpInfo
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 QueryOpInfo
impl RefUnwindSafe for QueryOpInfo
impl Send for QueryOpInfo
impl Sync for QueryOpInfo
impl Unpin for QueryOpInfo
impl UnsafeUnpin for QueryOpInfo
impl UnwindSafe for QueryOpInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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