pub struct FunctionArgs {
pub function: Option<String>,
pub function_inline: Option<String>,
pub function_file: Option<PathBuf>,
pub function_python_inline: Option<String>,
pub function_python_file: Option<PathBuf>,
}Expand description
Exactly-one-of --function | --function-inline | --function-file | --function-python-inline | --function-python-file. Lives on its
own sub-struct + group so the required = true, multiple = false
enforcement is scoped to these five fields (clap derive’s
default-group rule would otherwise pull every outer field into
the same group). The group id is function_group rather than
function to avoid colliding with the bare --function flag’s
own arg name.
Fields§
§function: Option<String>Remote-path ref in docker-style key=value form
(e.g. remote=mock,name=foo).
function_inline: Option<String>Inline JSON function definition (inline or remote-object shape).
function_file: Option<PathBuf>Path to a JSON file containing the function definition.
function_python_inline: Option<String>Inline Python that returns the function definition.
function_python_file: Option<PathBuf>Path to a Python file that returns the function definition.
Trait Implementations§
Source§impl Args for FunctionArgs
impl Args for FunctionArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for FunctionArgs
impl FromArgMatches for FunctionArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl TryFrom<FunctionArgs> for FunctionSpec
impl TryFrom<FunctionArgs> for FunctionSpec
Source§type Error = FromArgsError
type Error = FromArgsError
Auto Trait Implementations§
impl Freeze for FunctionArgs
impl RefUnwindSafe for FunctionArgs
impl Send for FunctionArgs
impl Sync for FunctionArgs
impl Unpin for FunctionArgs
impl UnsafeUnpin for FunctionArgs
impl UnwindSafe for FunctionArgs
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more