pub struct FunctionWithArgOpts<'a> {
pub default_path: Option<&'a str>,
pub default_value: Option<Json>,
pub description: Option<&'a str>,
pub ignore: Option<Vec<&'a str>>,
pub source_map: Option<SourceMapId>,
}
Fields§
§default_path: Option<&'a str>
If the argument is a Directory or File type, default to load path from context directory, relative to root directory.
default_value: Option<Json>
A default value to use for this argument if not explicitly set by the caller, if any
description: Option<&'a str>
A doc string for the argument, if any
ignore: Option<Vec<&'a str>>
Patterns to ignore when loading the contextual argument value.
source_map: Option<SourceMapId>
The source map for the argument definition.
Trait Implementations§
Source§impl<'a> Debug for FunctionWithArgOpts<'a>
impl<'a> Debug for FunctionWithArgOpts<'a>
Source§impl<'a> PartialEq for FunctionWithArgOpts<'a>
impl<'a> PartialEq for FunctionWithArgOpts<'a>
impl<'a> StructuralPartialEq for FunctionWithArgOpts<'a>
Auto Trait Implementations§
impl<'a> Freeze for FunctionWithArgOpts<'a>
impl<'a> RefUnwindSafe for FunctionWithArgOpts<'a>
impl<'a> Send for FunctionWithArgOpts<'a>
impl<'a> Sync for FunctionWithArgOpts<'a>
impl<'a> Unpin for FunctionWithArgOpts<'a>
impl<'a> UnwindSafe for FunctionWithArgOpts<'a>
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