pub struct Warning {
pub major: Major,
pub at: String,
pub reason: Invalid,
}Expand description
One finding a contract linter warns of (v1 §2.2, v2 §2.2): value,
disagrees, and under redundancy.v2 explicit_stream. Each is an
invalid declaration, which a runtime refuses to start; the core has no
code for any, so a linter warns. majors and not_used are core E002
and E020, which refuse the contract’s load, and tokenless is the
deployment’s, never the contract’s.
Fields§
§major: MajorThe major whose text the reason is under.
at: StringThe resource it is of, as crate::words::Lint::place names one,
or the interface id for disagrees.
reason: InvalidTrait Implementations§
impl Eq for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Forget for Warning
impl Freeze for Warning
impl Move for Warning
impl RefUnwindSafe for Warning
impl Send for Warningwhere
RawVecInner: Send,
impl Sync for Warningwhere
RawVecInner: Sync,
impl Unpin for Warning
impl UnsafeUnpin for Warning
impl UnwindSafe for Warningwhere
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
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