pub struct LoomObligation {
pub path: String,
pub reason: String,
pub expected: String,
pub actual: String,
pub valid_replacements: Vec<String>,
}Expand description
One row-scoped LOOM validation defect.
Fields§
§path: StringStable row path where the defect was found.
reason: StringHuman-facing reason.
expected: StringExpected menu, Shape, reference, or capability.
actual: StringActual row value.
valid_replacements: Vec<String>Valid replacements for the row position.
Implementations§
Source§impl LoomObligation
impl LoomObligation
Sourcepub fn new(
path: impl Into<String>,
reason: impl Into<String>,
expected: impl Into<String>,
actual: impl Into<String>,
valid_replacements: Vec<String>,
) -> Self
pub fn new( path: impl Into<String>, reason: impl Into<String>, expected: impl Into<String>, actual: impl Into<String>, valid_replacements: Vec<String>, ) -> Self
Builds a row-scoped LOOM obligation.
Sourcepub fn to_bridge_obligation(&self) -> BridgeObligation
pub fn to_bridge_obligation(&self) -> BridgeObligation
Projects this LOOM obligation into the shared BRIDGE report format.
Trait Implementations§
Source§impl Clone for LoomObligation
impl Clone for LoomObligation
Source§fn clone(&self) -> LoomObligation
fn clone(&self) -> LoomObligation
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 LoomObligation
impl Debug for LoomObligation
impl Eq for LoomObligation
Source§impl PartialEq for LoomObligation
impl PartialEq for LoomObligation
impl StructuralPartialEq for LoomObligation
Auto Trait Implementations§
impl Freeze for LoomObligation
impl RefUnwindSafe for LoomObligation
impl Send for LoomObligation
impl Sync for LoomObligation
impl Unpin for LoomObligation
impl UnsafeUnpin for LoomObligation
impl UnwindSafe for LoomObligation
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,
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.