pub enum CeremonyValidationLocus {
Definition,
Input {
input: InputName,
},
Output {
output: OutputName,
},
State {
state: StateId,
},
Transition {
from: StateId,
trigger: TransitionTrigger,
},
Step {
step: StepId,
},
Guard {
guard: GuardName,
},
Role {
role: RoleId,
},
}Expand description
The exact element of a ceremony definition a validation finding refers to.
A typed error says what is wrong; the locus says which element is wrong. Both are required for an author — human or agent — to correct a draft without guessing.
Variants§
Definition
The definition as a whole, when no narrower element applies.
Input
Output
Fields
§
output: OutputNameState
Transition
Step
Guard
Role
Implementations§
Source§impl CeremonyValidationLocus
impl CeremonyValidationLocus
pub fn input(input: InputName) -> Self
pub fn output(output: OutputName) -> Self
pub fn state(state: StateId) -> Self
pub fn transition(from: StateId, trigger: TransitionTrigger) -> Self
pub fn step(step: StepId) -> Self
pub fn guard(guard: GuardName) -> Self
pub fn role(role: RoleId) -> Self
Trait Implementations§
Source§impl Clone for CeremonyValidationLocus
impl Clone for CeremonyValidationLocus
Source§impl Debug for CeremonyValidationLocus
impl Debug for CeremonyValidationLocus
Source§impl<'de> Deserialize<'de> for CeremonyValidationLocus
impl<'de> Deserialize<'de> for CeremonyValidationLocus
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 CeremonyValidationLocus
Where a finding points, said in words.
impl Display for CeremonyValidationLocus
Where a finding points, said in words.
The serialized form names the element for a machine; this names it for whoever is reading the explanation. They are different jobs: prose that quotes a JSON object at the reader is prose only by accident.
impl Eq for CeremonyValidationLocus
Source§impl PartialEq for CeremonyValidationLocus
impl PartialEq for CeremonyValidationLocus
Source§impl Serialize for CeremonyValidationLocus
impl Serialize for CeremonyValidationLocus
impl StructuralPartialEq for CeremonyValidationLocus
Auto Trait Implementations§
impl Freeze for CeremonyValidationLocus
impl RefUnwindSafe for CeremonyValidationLocus
impl Send for CeremonyValidationLocus
impl Sync for CeremonyValidationLocus
impl Unpin for CeremonyValidationLocus
impl UnsafeUnpin for CeremonyValidationLocus
impl UnwindSafe for CeremonyValidationLocus
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