pub struct TableViewSchema {
pub view_id: String,
pub title: String,
pub datasource: String,
pub table: String,
pub data_action: String,
pub columns: Vec<TableColumnSchema>,
pub form: FormSchema,
pub tree: Option<TreeViewSchema>,
pub query: TableQuerySchema,
pub actions: Vec<String>,
pub action_presentations: Vec<ActionPresentationSchema>,
}Expand description
请求级通用表格 View 契约。
Fields§
§view_id: String稳定 View ID,不与前端文件路径绑定。
title: String用户可见标题。
datasource: String表所属逻辑数据源;与 table 一起唯一标识物理表。
table: String服务端表定义名。
data_action: String返回标准分页行数据的 Action operation ID。
columns: Vec<TableColumnSchema>当前用户可读的有序列。
form: FormSchema当前用户可读或可写的通用表单字段。
tree: Option<TreeViewSchema>可选树拓扑;所需字段不可读时省略并安全降级为普通表格。
query: TableQuerySchema搜索、筛选、默认排序和分页能力。
actions: Vec<String>当前用户可调用的有序 Action operation IDs。
action_presentations: Vec<ActionPresentationSchema>当前用户可调用 Action 的声明式展示语义。
Trait Implementations§
Source§impl Clone for TableViewSchema
impl Clone for TableViewSchema
Source§impl Debug for TableViewSchema
impl Debug for TableViewSchema
impl Eq for TableViewSchema
Source§impl JsonSchema for TableViewSchema
impl JsonSchema for TableViewSchema
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 TableViewSchema
impl PartialEq for TableViewSchema
Source§impl Serialize for TableViewSchema
impl Serialize for TableViewSchema
impl StructuralPartialEq for TableViewSchema
Auto Trait Implementations§
impl Forget for TableViewSchema
impl Freeze for TableViewSchema
impl Move for TableViewSchema
impl RefUnwindSafe for TableViewSchema
impl Send for TableViewSchema
impl Sync for TableViewSchema
impl Unpin for TableViewSchema
impl UnsafeUnpin for TableViewSchema
impl UnwindSafe for TableViewSchema
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