#[non_exhaustive]pub struct ReadsContract {
pub required: &'static [&'static str],
pub exactly_one_of: &'static [&'static [&'static str]],
pub with_field_requires: &'static [(&'static str, &'static str)],
}Expand description
What an action requires of its step’s reads: map.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.required: &'static [&'static str]Inputs every step of this action must name.
exactly_one_of: &'static [&'static [&'static str]]Groups from which exactly one input must be named. Each group holds the alternatives in the order they should be listed to the author.
with_field_requires: &'static [(&'static str, &'static str)]with: fields that mean nothing unless the step also names a given
input, as (field, input) pairs.
Where an action offers two paths over one operation, a parameter can belong to only one of them. On the other path it would be parsed and never read, so the step would run without whatever the parameter asked for. This says which parameter needs which input.
Implementations§
Trait Implementations§
Source§impl Clone for ReadsContract
impl Clone for ReadsContract
Source§fn clone(&self) -> ReadsContract
fn clone(&self) -> ReadsContract
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 ReadsContract
Source§impl Debug for ReadsContract
impl Debug for ReadsContract
impl Eq for ReadsContract
Source§impl PartialEq for ReadsContract
impl PartialEq for ReadsContract
impl StructuralPartialEq for ReadsContract
Auto Trait Implementations§
impl Freeze for ReadsContract
impl RefUnwindSafe for ReadsContract
impl Send for ReadsContract
impl Sync for ReadsContract
impl Unpin for ReadsContract
impl UnsafeUnpin for ReadsContract
impl UnwindSafe for ReadsContract
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,
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.