pub struct InvariantDescriptor {
pub name: &'static str,
pub code: u32,
pub description: &'static str,
}Expand description
Invariant descriptor for schema/tooling export.
Fields§
§name: &'static strHuman-readable invariant name.
code: u32Error code if violated.
description: &'static strDescription of what’s being checked.
Trait Implementations§
Source§impl Clone for InvariantDescriptor
impl Clone for InvariantDescriptor
Source§fn clone(&self) -> InvariantDescriptor
fn clone(&self) -> InvariantDescriptor
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 moreimpl Copy for InvariantDescriptor
Auto Trait Implementations§
impl Freeze for InvariantDescriptor
impl RefUnwindSafe for InvariantDescriptor
impl Send for InvariantDescriptor
impl Sync for InvariantDescriptor
impl Unpin for InvariantDescriptor
impl UnsafeUnpin for InvariantDescriptor
impl UnwindSafe for InvariantDescriptor
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