pub struct PreflightArgs<'a> {
pub config_dir: &'a Path,
pub resolved: &'a ResolvedConfig,
pub content_blocks_root: &'a Path,
pub email_templates_root: &'a Path,
pub kinds: &'a [ResourceKind],
pub cb_name_filter: Option<&'a str>,
pub et_name_filter: Option<&'a str>,
pub cb_excludes: &'a [Regex],
pub et_excludes: &'a [Regex],
}Expand description
Bundle of inputs the pre-flight needs from the entry layer. Kept as a struct (rather than 10 positional args) to keep clippy happy and to make future additions (e.g. a new kind that grows placeholders) non-breaking at call sites.
Fields§
§config_dir: &'a Path§resolved: &'a ResolvedConfig§content_blocks_root: &'a Path§email_templates_root: &'a Path§kinds: &'a [ResourceKind]§cb_name_filter: Option<&'a str>§et_name_filter: Option<&'a str>§cb_excludes: &'a [Regex]§et_excludes: &'a [Regex]Auto Trait Implementations§
impl<'a> Freeze for PreflightArgs<'a>
impl<'a> RefUnwindSafe for PreflightArgs<'a>
impl<'a> Send for PreflightArgs<'a>
impl<'a> Sync for PreflightArgs<'a>
impl<'a> Unpin for PreflightArgs<'a>
impl<'a> UnsafeUnpin for PreflightArgs<'a>
impl<'a> UnwindSafe for PreflightArgs<'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