pub enum NativeScript {
Signature {
from: DigestBlake2b224,
},
All {
from: Vec<NativeScript>,
},
Any {
from: Vec<NativeScript>,
},
Some {
at_least: u32,
from: Vec<NativeScript>,
},
After {
slot: Slot,
},
Before {
slot: Slot,
},
}Expand description
Native script types.
Variants§
Signature
Signature required.
Fields
§
from: DigestBlake2b224All
All scripts must validate.
Fields
§
from: Vec<NativeScript>Any
Any script must validate.
Fields
§
from: Vec<NativeScript>Some
At least M of N scripts must validate.
After
Valid after slot.
Before
Valid before slot.
Trait Implementations§
Source§impl Clone for NativeScript
impl Clone for NativeScript
Source§impl Debug for NativeScript
impl Debug for NativeScript
Source§impl<'de> Deserialize<'de> for NativeScript
impl<'de> Deserialize<'de> for NativeScript
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NativeScript
Source§impl PartialEq for NativeScript
impl PartialEq for NativeScript
Source§impl Serialize for NativeScript
impl Serialize for NativeScript
impl StructuralPartialEq for NativeScript
Auto Trait Implementations§
impl Freeze for NativeScript
impl RefUnwindSafe for NativeScript
impl Send for NativeScript
impl Sync for NativeScript
impl Unpin for NativeScript
impl UnsafeUnpin for NativeScript
impl UnwindSafe for NativeScript
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.