#[non_exhaustive]pub enum ActionValidationError {
Show 31 variants
InvalidId {
id: String,
},
InvalidVersion {
version: String,
},
WrongKind {
expected: ActionKind,
got: ActionKind,
},
SideEffectsRequired,
NonDeterministicExecution,
RetryNotAllowed,
StateNotAllowed,
DuplicateId(String),
DuplicateInput {
name: String,
first_index: usize,
second_index: usize,
},
EventInputRequired,
DuplicateWriteName {
name: String,
first_index: usize,
second_index: usize,
},
InvalidWriteType {
name: String,
got: ValueType,
},
InvalidInputType {
input: String,
expected: ActionValueType,
got: ActionValueType,
},
OutputNotOutcome {
name: String,
index: usize,
},
InvalidOutputType {
output: String,
expected: ActionValueType,
got: ActionValueType,
},
UndeclaredOutput {
primitive: String,
output: String,
},
InvalidParameterType {
parameter: String,
expected: ParameterType,
got: ParameterType,
},
UnboundWriteKeyReference {
name: String,
referenced_param: String,
},
WriteKeyReferenceNotString {
name: String,
referenced_param: String,
},
WriteFromInputNotFound {
write_name: String,
from_input: String,
},
WriteFromInputTypeMismatch {
write_name: String,
from_input: String,
expected: ValueType,
found: ActionValueType,
},
DuplicateIntentName {
name: String,
first_index: usize,
second_index: usize,
},
DuplicateIntentFieldName {
intent_name: String,
field_name: String,
first_index: usize,
second_index: usize,
},
IntentFieldMissingSource {
intent_name: String,
field_name: String,
},
IntentFieldMultipleSources {
intent_name: String,
field_name: String,
},
IntentFieldFromInputNotFound {
intent_name: String,
field_name: String,
from_input: String,
},
IntentFieldFromInputTypeMismatch {
intent_name: String,
field_name: String,
from_input: String,
expected: ValueType,
found: ActionValueType,
},
IntentFieldFromParamNotFound {
intent_name: String,
field_name: String,
from_param: String,
},
IntentFieldFromParamTypeMismatch {
intent_name: String,
field_name: String,
from_param: String,
expected: ValueType,
found: ParameterType,
},
MirrorWriteFromFieldNotFound {
intent_name: String,
write_name: String,
from_field: String,
},
MirrorWriteTypeMismatch {
intent_name: String,
write_name: String,
from_field: String,
expected: ValueType,
found: ValueType,
},
}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.
InvalidId
InvalidVersion
WrongKind
SideEffectsRequired
NonDeterministicExecution
RetryNotAllowed
StateNotAllowed
DuplicateId(String)
DuplicateInput
EventInputRequired
DuplicateWriteName
InvalidWriteType
InvalidInputType
OutputNotOutcome
InvalidOutputType
UndeclaredOutput
InvalidParameterType
UnboundWriteKeyReference
WriteKeyReferenceNotString
WriteFromInputNotFound
WriteFromInputTypeMismatch
DuplicateIntentName
DuplicateIntentFieldName
IntentFieldMissingSource
IntentFieldMultipleSources
IntentFieldFromInputNotFound
IntentFieldFromInputTypeMismatch
Fields
§
found: ActionValueTypeIntentFieldFromParamNotFound
IntentFieldFromParamTypeMismatch
Fields
§
found: ParameterTypeMirrorWriteFromFieldNotFound
MirrorWriteTypeMismatch
Trait Implementations§
Source§impl Clone for ActionValidationError
impl Clone for ActionValidationError
Source§fn clone(&self) -> ActionValidationError
fn clone(&self) -> ActionValidationError
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 ActionValidationError
impl Debug for ActionValidationError
Source§impl Display for ActionValidationError
impl Display for ActionValidationError
Source§impl Error for ActionValidationError
impl Error for ActionValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl ErrorInfo for ActionValidationError
impl ErrorInfo for ActionValidationError
Source§impl PartialEq for ActionValidationError
impl PartialEq for ActionValidationError
Source§fn eq(&self, other: &ActionValidationError) -> bool
fn eq(&self, other: &ActionValidationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ActionValidationError
Auto Trait Implementations§
impl Freeze for ActionValidationError
impl RefUnwindSafe for ActionValidationError
impl Send for ActionValidationError
impl Sync for ActionValidationError
impl Unpin for ActionValidationError
impl UnsafeUnpin for ActionValidationError
impl UnwindSafe for ActionValidationError
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