pub struct Violation {
pub kind: ViolationKind,
pub item_id: Option<String>,
}Expand description
One lifecycle violation and the item it concerns, when there is one.
Fields§
§kind: ViolationKind§item_id: Option<String>Implementations§
Source§impl Violation
impl Violation
Sourcepub fn diagnostic(&self) -> Diagnostic
pub fn diagnostic(&self) -> Diagnostic
Operational diagnostic for this violation. The correlation id is stable per kind and item so repeated reports replace one another.
Trait Implementations§
impl Eq for Violation
impl StructuralPartialEq for Violation
Auto Trait Implementations§
impl Forget for Violation
impl Freeze for Violation
impl Move for Violation
impl RefUnwindSafe for Violation
impl Send for Violationwhere
RawVecInner: Send,
impl Sync for Violationwhere
RawVecInner: Sync,
impl Unpin for Violation
impl UnsafeUnpin for Violation
impl UnwindSafe for Violationwhere
RawVecInner: UnwindSafe,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.