pub enum OptionShape {
Scalar(i32),
OptionalScalar(i32),
RepeatableList(RepeatableListShape),
RepeatableMap(RepeatableMapShape),
}Variants§
Scalar(i32)
Required value: –opt VALUE or –opt=VALUE. Index into tool.schema.
OptionalScalar(i32)
Bare presence collapses to default; with value parses normally
(–decorate, –signed[=mode], –force-with-lease[=ref]). Index into
tool.schema.
RepeatableList(RepeatableListShape)
Repeatable scalar option (-e a -e b); the collected value is a
list of the element type.
RepeatableMap(RepeatableMapShape)
Repeatable key-value option (-c a=1 -c b=2); the collected value is a
golem:core map node, never a list<tuple>.
Trait Implementations§
Source§impl Clone for OptionShape
impl Clone for OptionShape
Source§fn clone(&self) -> OptionShape
fn clone(&self) -> OptionShape
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 OptionShape
Auto Trait Implementations§
impl Freeze for OptionShape
impl RefUnwindSafe for OptionShape
impl Send for OptionShape
impl Sync for OptionShape
impl Unpin for OptionShape
impl UnsafeUnpin for OptionShape
impl UnwindSafe for OptionShape
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