pub struct CommandFormOverride {
pub pargs: Option<NArgs>,
pub kwargs: IndexMap<String, KwargSpecOverride>,
pub flags: IndexSet<String>,
pub layout: Option<LayoutOverridesOverride>,
}Expand description
Partial override for a command form.
Fields§
§pargs: Option<NArgs>Override the positional argument count for the form.
kwargs: IndexMap<String, KwargSpecOverride>Keyword overrides to merge into the form.
flags: IndexSet<String>Additional supported flags.
layout: Option<LayoutOverridesOverride>Optional layout overrides for the form.
Implementations§
Source§impl CommandFormOverride
impl CommandFormOverride
Sourcepub fn into_full_form(self) -> CommandForm
pub fn into_full_form(self) -> CommandForm
Convert a partial command form override into a fully specified form.
Trait Implementations§
Source§impl Clone for CommandFormOverride
impl Clone for CommandFormOverride
Source§fn clone(&self) -> CommandFormOverride
fn clone(&self) -> CommandFormOverride
Returns a duplicate of the value. Read more
1.0.0 · 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 CommandFormOverride
impl Debug for CommandFormOverride
Source§impl Default for CommandFormOverride
impl Default for CommandFormOverride
Source§fn default() -> CommandFormOverride
fn default() -> CommandFormOverride
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommandFormOverride
impl<'de> Deserialize<'de> for CommandFormOverride
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
Auto Trait Implementations§
impl Freeze for CommandFormOverride
impl RefUnwindSafe for CommandFormOverride
impl Send for CommandFormOverride
impl Sync for CommandFormOverride
impl Unpin for CommandFormOverride
impl UnsafeUnpin for CommandFormOverride
impl UnwindSafe for CommandFormOverride
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