pub struct CommandParameterContract {
pub name: String,
pub default: Option<String>,
}Expand description
One declared parameter of a command, as the emitter sees it.
Parameters are untyped, as just’s are: every value is one command-line
word. A default is LITERAL text — the check layer refuses {{…}} inside
one, so nothing here resolves a default against anything.
Fields§
§name: StringThe parameter’s name — the only thing a hole may name.
default: Option<String>The literal default this parameter takes when a parameter set omits it. Absence is a legal declared state: a parameter with neither a supplied value nor a default has nothing for this surface to invent, and refuses.
Trait Implementations§
Source§impl Clone for CommandParameterContract
impl Clone for CommandParameterContract
Source§fn clone(&self) -> CommandParameterContract
fn clone(&self) -> CommandParameterContract
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 moreSource§impl Debug for CommandParameterContract
impl Debug for CommandParameterContract
Source§impl<'de> Deserialize<'de> for CommandParameterContract
impl<'de> Deserialize<'de> for CommandParameterContract
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 CommandParameterContract
Source§impl PartialEq for CommandParameterContract
impl PartialEq for CommandParameterContract
Source§impl Serialize for CommandParameterContract
impl Serialize for CommandParameterContract
impl StructuralPartialEq for CommandParameterContract
Auto Trait Implementations§
impl Freeze for CommandParameterContract
impl RefUnwindSafe for CommandParameterContract
impl Send for CommandParameterContract
impl Sync for CommandParameterContract
impl Unpin for CommandParameterContract
impl UnsafeUnpin for CommandParameterContract
impl UnwindSafe for CommandParameterContract
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,
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.