pub struct TableQuerySchema {
pub search_fields: Vec<String>,
pub filter_fields: Vec<String>,
pub default_sort: Vec<TableSortSchema>,
pub default_page_size: usize,
pub max_page_size: usize,
}Expand description
通用 TableView 的查询能力与服务端分页边界。
Fields§
§search_fields: Vec<String>当前用户可见且允许关键词搜索的字段。
filter_fields: Vec<String>当前用户可见且允许结构化条件筛选的字段。
default_sort: Vec<TableSortSchema>按声明顺序排列的默认排序;不可读字段会从请求级投影中移除。
default_page_size: usize默认分页大小。
max_page_size: usize服务端强制执行的最大分页大小。
Trait Implementations§
Source§impl Clone for TableQuerySchema
impl Clone for TableQuerySchema
Source§impl Debug for TableQuerySchema
impl Debug for TableQuerySchema
impl Eq for TableQuerySchema
Source§impl JsonSchema for TableQuerySchema
impl JsonSchema for TableQuerySchema
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TableQuerySchema
impl PartialEq for TableQuerySchema
Source§impl Serialize for TableQuerySchema
impl Serialize for TableQuerySchema
impl StructuralPartialEq for TableQuerySchema
Auto Trait Implementations§
impl Forget for TableQuerySchema
impl Freeze for TableQuerySchema
impl Move for TableQuerySchema
impl RefUnwindSafe for TableQuerySchema
impl Send for TableQuerySchema
impl Sync for TableQuerySchema
impl Unpin for TableQuerySchema
impl UnsafeUnpin for TableQuerySchema
impl UnwindSafe for TableQuerySchema
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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