pub enum Invalid {
NotState,
Value,
Repeated,
NotAParam,
RestParam,
ParamNotTarget,
NotString,
HorizonV1,
}Expand description
Why a declaration is invalid (§2.2), in the order checked.
Variants§
NotState
The resource is not state.
Value
Not a string, nor an array of one or two strings.
Repeated
A name twice.
NotAParam
A name that is no parameter of the template.
RestParam
A name of a rest parameter.
ParamNotTarget
A template parameter the value does not name.
NotString
A target parameter, not a rest one, whose type is not string
(text 0.2, F-170).
HorizonV1
desired.v2 §2.2 alone, checked last: a horizon above 0 in a
contract that does not use freshness.v2 (v2::declaration).
declaration, desired.v1’s reading, never gives it.
Implementations§
Trait Implementations§
impl Copy for Invalid
impl Eq for Invalid
impl StructuralPartialEq for Invalid
Auto Trait Implementations§
impl Forget for Invalid
impl Freeze for Invalid
impl Move for Invalid
impl RefUnwindSafe for Invalid
impl Send for Invalid
impl Sync for Invalid
impl Unpin for Invalid
impl UnsafeUnpin for Invalid
impl UnwindSafe for Invalid
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