pub enum NameSpec {
Static(&'static str),
DerivedFrom(&'static str),
DerivedWithDefault {
input_name: &'static str,
default: &'static str,
},
}Expand description
How the runtime name of an OutputSpec or ExtensionSpec is
determined.
Static names are fixed at declaration time; derived names are
looked up from a Type::Text input when the step runs, optionally
falling back to a static default.
Variants§
Static(&'static str)
A fixed name known at declaration time.
DerivedFrom(&'static str)
The name is read from the named input at runtime. The input
must be declared on the operation with ty: Type::Text.
DerivedWithDefault
As for DerivedFrom, but falls back to
default when the input is absent at runtime. The referenced
input must be optional (required: false).
Trait Implementations§
impl StructuralPartialEq for NameSpec
Auto Trait Implementations§
impl Freeze for NameSpec
impl RefUnwindSafe for NameSpec
impl Send for NameSpec
impl Sync for NameSpec
impl Unpin for NameSpec
impl UnsafeUnpin for NameSpec
impl UnwindSafe for NameSpec
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