#[non_exhaustive]pub enum ActionInteraction {
Form,
Download,
Preview,
Navigate,
Custom,
Invoke,
}Expand description
Action 的声明式交互方式。
该值不包含组件路径或动态代码。未知值降级为直接调用,由默认 Action 演示层 负责收集参数和展示响应。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Form
根据 Action 输入契约生成表单后调用。
Download
调用后下载文件。
Preview
调用后在浏览器内预览文件。
调用后执行服务端声明的安全跳转。
Custom
交给前端白名单注册的自定义 View。
Invoke
直接调用 Action,也是未知值的安全降级。
Trait Implementations§
Source§impl Clone for ActionInteraction
impl Clone for ActionInteraction
impl Copy for ActionInteraction
Source§impl Debug for ActionInteraction
impl Debug for ActionInteraction
Source§impl Default for ActionInteraction
impl Default for ActionInteraction
Source§impl<'de> Deserialize<'de> for ActionInteraction
impl<'de> Deserialize<'de> for ActionInteraction
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
impl Eq for ActionInteraction
Source§impl JsonSchema for ActionInteraction
impl JsonSchema for ActionInteraction
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 ActionInteraction
impl PartialEq for ActionInteraction
Source§impl Serialize for ActionInteraction
impl Serialize for ActionInteraction
impl StructuralPartialEq for ActionInteraction
Auto Trait Implementations§
impl Forget for ActionInteraction
impl Freeze for ActionInteraction
impl Move for ActionInteraction
impl RefUnwindSafe for ActionInteraction
impl Send for ActionInteraction
impl Sync for ActionInteraction
impl Unpin for ActionInteraction
impl UnsafeUnpin for ActionInteraction
impl UnwindSafe for ActionInteraction
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<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