pub enum RbumWidgetTypeKind {
Show 19 variants
Input,
InputTxt,
InputNum,
Textarea,
Number,
Date,
DateTime,
Upload,
Radio,
Button,
Checkbox,
Switch,
Select,
MultiSelect,
Link,
CodeEditor,
Container,
Control,
Group,
}Expand description
Widget kind
(前端)控件类型
Variants§
Input
InputTxt
InputNum
Textarea
Number
Date
DateTime
Upload
Radio
Button
Checkbox
Switch
Select
MultiSelect
Link
CodeEditor
Container
Display group subtitles, datatype = String & value is empty
显示组标题,datatype = String & 值为空
Control
Json fields : datatype = Json && all parent_attr_name = current attribute
Json字段,datatype = Json && 所有 parent_attr_name = 当前属性
Group
Sub fields : datatype = Array && all parent_attr_name = current attribute, The value of the json array is stored to the current field.
子字段,datatype = Array && 所有 parent_attr_name = 当前属性,将json数组的值存储到当前字段。
Trait Implementations§
Source§impl Clone for RbumWidgetTypeKind
impl Clone for RbumWidgetTypeKind
Source§fn clone(&self) -> RbumWidgetTypeKind
fn clone(&self) -> RbumWidgetTypeKind
Returns a duplicate of the value. Read more
1.0.0 · 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 RbumWidgetTypeKind
impl Debug for RbumWidgetTypeKind
Source§impl<'de> Deserialize<'de> for RbumWidgetTypeKind
impl<'de> Deserialize<'de> for RbumWidgetTypeKind
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 Display for RbumWidgetTypeKind
impl Display for RbumWidgetTypeKind
Source§impl FromStr for RbumWidgetTypeKind
impl FromStr for RbumWidgetTypeKind
Source§impl ParseFromJSON for RbumWidgetTypeKind
impl ParseFromJSON for RbumWidgetTypeKind
Source§fn parse_from_json(value: Option<Value>) -> ParseResult<Self>
fn parse_from_json(value: Option<Value>) -> ParseResult<Self>
Parse from
serde_json::Value.Source§fn parse_from_json_string(s: &str) -> Result<Self, ParseError<Self>>
fn parse_from_json_string(s: &str) -> Result<Self, ParseError<Self>>
Parse from JSON string.
Source§impl ParseFromMultipartField for RbumWidgetTypeKind
impl ParseFromMultipartField for RbumWidgetTypeKind
Source§async fn parse_from_multipart(field: Option<Field>) -> ParseResult<Self>
async fn parse_from_multipart(field: Option<Field>) -> ParseResult<Self>
Parse from multipart field.
Source§fn parse_from_repeated_field(
self,
_field: Field,
) -> impl Future<Output = Result<Self, ParseError<Self>>> + Send
fn parse_from_repeated_field( self, _field: Field, ) -> impl Future<Output = Result<Self, ParseError<Self>>> + Send
Parse from repeated multipart field.
Source§impl ParseFromParameter for RbumWidgetTypeKind
impl ParseFromParameter for RbumWidgetTypeKind
Source§fn parse_from_parameter(value: &str) -> ParseResult<Self>
fn parse_from_parameter(value: &str) -> ParseResult<Self>
Parse from parameter.
Source§fn parse_from_parameters<I, A>(iter: I) -> Result<Self, ParseError<Self>>
fn parse_from_parameters<I, A>(iter: I) -> Result<Self, ParseError<Self>>
Parse from multiple parameters.
Source§impl PartialEq for RbumWidgetTypeKind
impl PartialEq for RbumWidgetTypeKind
Source§impl Serialize for RbumWidgetTypeKind
impl Serialize for RbumWidgetTypeKind
Source§impl ToJSON for RbumWidgetTypeKind
impl ToJSON for RbumWidgetTypeKind
Source§impl TryFrom<&str> for RbumWidgetTypeKind
impl TryFrom<&str> for RbumWidgetTypeKind
Source§impl TryGetable for RbumWidgetTypeKind
impl TryGetable for RbumWidgetTypeKind
Source§fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
Get a value from the query result with prefixed column name
Source§fn try_get_by<I: ColIdx>(
_res: &QueryResult,
_index: I,
) -> Result<Self, TryGetError>
fn try_get_by<I: ColIdx>( _res: &QueryResult, _index: I, ) -> Result<Self, TryGetError>
Get a value from the query result with an ColIdx
Source§fn try_get_by_index(
res: &QueryResult,
index: usize,
) -> Result<Self, TryGetError>
fn try_get_by_index( res: &QueryResult, index: usize, ) -> Result<Self, TryGetError>
Get a value from the query result based on the order in the select expressions
Source§impl Type for RbumWidgetTypeKind
impl Type for RbumWidgetTypeKind
Source§const IS_REQUIRED: bool = true
const IS_REQUIRED: bool = true
If it is
true, it means that this type is required.Source§type RawValueType = RbumWidgetTypeKind
type RawValueType = RbumWidgetTypeKind
The raw type used for validator. Read more
Source§type RawElementValueType = RbumWidgetTypeKind
type RawElementValueType = RbumWidgetTypeKind
The raw element type used for validator.
Source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
Source§fn schema_ref() -> MetaSchemaRef
fn schema_ref() -> MetaSchemaRef
Get schema reference of this type.
Source§fn raw_element_iter<'a>(
&'a self,
) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
fn raw_element_iter<'a>( &'a self, ) -> Box<dyn Iterator<Item = &'a Self::RawElementValueType> + 'a>
Returns an iterator for traversing the elements.
impl Eq for RbumWidgetTypeKind
impl StructuralPartialEq for RbumWidgetTypeKind
Auto Trait Implementations§
impl Freeze for RbumWidgetTypeKind
impl RefUnwindSafe for RbumWidgetTypeKind
impl Send for RbumWidgetTypeKind
impl Sync for RbumWidgetTypeKind
impl Unpin for RbumWidgetTypeKind
impl UnwindSafe for RbumWidgetTypeKind
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<V> PrimaryKeyArity for Vwhere
V: TryGetable,
impl<V> PrimaryKeyArity for Vwhere
V: TryGetable,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.
Source§impl<T> TryGetableMany for Twhere
T: TryGetable,
impl<T> TryGetableMany for Twhere
T: TryGetable,
Source§fn try_get_many(
res: &QueryResult,
pre: &str,
cols: &[String],
) -> Result<T, TryGetError>
fn try_get_many( res: &QueryResult, pre: &str, cols: &[String], ) -> Result<T, TryGetError>
Get a tuple value from the query result with prefixed column name
Source§fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
Get a tuple value from the query result based on the order in the select expressions