#[non_exhaustive]pub struct ErrorSite {
pub kind: SiteKind,
pub workflow_id: Arc<str>,
pub task_id: Option<Arc<str>>,
pub group_id: Option<Arc<str>>,
pub rule_index: Option<usize>,
pub mapping_index: Option<usize>,
pub target_path: Option<Arc<str>>,
pub authored_path: Option<AuthoredPath>,
pub loop_counter: Option<i64>,
}Expand description
Where in a workflow a runtime Error or ErrorRecord originated.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: SiteKindWhich kind of site failed.
workflow_id: Arc<str>The workflow’s id.
task_id: Option<Arc<str>>The task’s id, when the site belongs to a task.
group_id: Option<Arc<str>>The group’s id, when the site is a group condition.
rule_index: Option<usize>Zero-based rule index when the site is a validation rule.
mapping_index: Option<usize>Zero-based mapping index when the site is a map mapping.
target_path: Option<Arc<str>>Target context path when the site is a map mapping with a known destination.
Where the site sits in the authored workflow definition.
loop_counter: Option<i64>The loop sweep counter, inside a workflow’s loop.
Implementations§
Source§impl ErrorSite
impl ErrorSite
Sourcepub fn with_group(self, group_id: Arc<str>) -> Self
pub fn with_group(self, group_id: Arc<str>) -> Self
Sets the group id on this site.
Sourcepub fn with_path(self, path: AuthoredPath) -> Self
pub fn with_path(self, path: AuthoredPath) -> Self
Sets the authored path on this site.
Sourcepub fn with_loop_counter(self, loop_counter: Option<i64>) -> Self
pub fn with_loop_counter(self, loop_counter: Option<i64>) -> Self
Sets the loop sweep counter on this site.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorSite
impl<'de> Deserialize<'de> for ErrorSite
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 ErrorSite
impl StructuralPartialEq for ErrorSite
Auto Trait Implementations§
impl Freeze for ErrorSite
impl RefUnwindSafe for ErrorSite
impl Send for ErrorSite
impl Sync for ErrorSite
impl Unpin for ErrorSite
impl UnsafeUnpin for ErrorSite
impl UnwindSafe for ErrorSite
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§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.