#[non_exhaustive]pub enum TriggerValidationError {
Show 14 variants
InvalidId {
id: String,
},
InvalidVersion {
version: String,
},
WrongKind {
expected: TriggerKind,
got: TriggerKind,
},
NoInputsDeclared {
trigger: String,
},
DuplicateInput {
name: String,
first_index: usize,
second_index: usize,
},
SideEffectsNotAllowed,
NonDeterministicExecution,
DuplicateId(String),
TriggerWrongOutputCount {
got: usize,
},
InvalidInputCardinality {
input: String,
got: String,
},
InvalidInputType {
input: String,
expected: TriggerValueType,
got: TriggerValueType,
},
InvalidOutputType {
output: String,
expected: TriggerValueType,
got: TriggerValueType,
},
InvalidParameterType {
parameter: String,
expected: ParameterType,
got: ParameterType,
},
StatefulTriggerNotAllowed {
trigger_id: String,
},
}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
NoInputsDeclared
DuplicateInput
SideEffectsNotAllowed
NonDeterministicExecution
DuplicateId(String)
TriggerWrongOutputCount
InvalidInputCardinality
InvalidInputType
InvalidOutputType
InvalidParameterType
StatefulTriggerNotAllowed
TRG-STATE-1: Triggers must be stateless.
Trait Implementations§
Source§impl Clone for TriggerValidationError
impl Clone for TriggerValidationError
Source§fn clone(&self) -> TriggerValidationError
fn clone(&self) -> TriggerValidationError
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 TriggerValidationError
impl Debug for TriggerValidationError
Source§impl Display for TriggerValidationError
impl Display for TriggerValidationError
Source§impl Error for TriggerValidationError
impl Error for TriggerValidationError
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 TriggerValidationError
impl ErrorInfo for TriggerValidationError
Source§impl PartialEq for TriggerValidationError
impl PartialEq for TriggerValidationError
Source§fn eq(&self, other: &TriggerValidationError) -> bool
fn eq(&self, other: &TriggerValidationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TriggerValidationError
Auto Trait Implementations§
impl Freeze for TriggerValidationError
impl RefUnwindSafe for TriggerValidationError
impl Send for TriggerValidationError
impl Sync for TriggerValidationError
impl Unpin for TriggerValidationError
impl UnsafeUnpin for TriggerValidationError
impl UnwindSafe for TriggerValidationError
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