pub struct Lint {
pub profile: &'static str,
pub at: String,
pub key: Option<&'static str>,
pub token: &'static str,
pub says: &'static str,
}Expand description
One finding of a profile’s lint of a contract’s tables and
declarations: what a build and zk2 contract lint report as an error.
Fields§
§profile: &'static strThe profile whose rule the finding is under, as uses lists it.
at: StringThe resource whose declaration drew it (Lint::place).
key: Option<&'static str>The annotation key the finding is of, where it is of one key.
token: &'static strThe reason’s token, as the profile’s fixtures spell it.
says: &'static strThe reason in words.
Implementations§
Trait Implementations§
impl Eq for Lint
impl StructuralPartialEq for Lint
Auto Trait Implementations§
impl Forget for Lint
impl Freeze for Lint
impl Move for Lint
impl RefUnwindSafe for Lint
impl Send for Lint
impl Sync for Lintwhere
RawVecInner: Sync,
impl Unpin for Lint
impl UnsafeUnpin for Lint
impl UnwindSafe for Lint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more