pub struct RelationOptionsRequest {
pub search: Option<String>,
pub selected: Vec<Value>,
pub filter: BTreeMap<String, Value>,
pub page: usize,
pub limit: usize,
}Expand description
关系选项请求。
filter 只表示字段到值的声明式精确筛选;执行器仍必须按目标表字段白名单、当前
用户权限和租户范围逐项校验,不能把字段名直接拼接进 SQL。
Fields§
§search: Option<String>模糊搜索文本。
selected: Vec<Value>需要回填的已选主键;即使不在当前搜索页也应返回。
filter: BTreeMap<String, Value>声明式精确筛选字段。
page: usize从 1 开始的页码。
limit: usize每页数量,上限与通用查询一致。
Implementations§
Trait Implementations§
Source§impl Clone for RelationOptionsRequest
impl Clone for RelationOptionsRequest
Source§fn clone(&self) -> RelationOptionsRequest
fn clone(&self) -> RelationOptionsRequest
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 RelationOptionsRequest
impl Debug for RelationOptionsRequest
Source§impl Default for RelationOptionsRequest
impl Default for RelationOptionsRequest
Source§impl<'de> Deserialize<'de> for RelationOptionsRequestwhere
RelationOptionsRequest: Default,
impl<'de> Deserialize<'de> for RelationOptionsRequestwhere
RelationOptionsRequest: Default,
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
Source§impl JsonSchema for RelationOptionsRequest
impl JsonSchema for RelationOptionsRequest
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 ParamInput for RelationOptionsRequest
impl ParamInput for RelationOptionsRequest
Source§impl PartialEq for RelationOptionsRequest
impl PartialEq for RelationOptionsRequest
impl StructuralPartialEq for RelationOptionsRequest
Auto Trait Implementations§
impl Freeze for RelationOptionsRequest
impl RefUnwindSafe for RelationOptionsRequest
impl Send for RelationOptionsRequest
impl Sync for RelationOptionsRequest
impl Unpin for RelationOptionsRequest
impl UnsafeUnpin for RelationOptionsRequest
impl UnwindSafe for RelationOptionsRequest
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