#[non_exhaustive]pub struct ExtractedConfig {
pub value: ConfigValue,
pub call_arguments: Vec<ConfigValue>,
}Expand description
What a config file exports, with the arguments of the calls it is made of that cannot be followed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: ConfigValueThe exported value, as extract_config_object evaluates it.
call_arguments: Vec<ConfigValue>The evaluated arguments of a call the evaluator cannot follow (createConfig({ setupFiles: ['./setup.ts'] })
of an installed package) whose result is the exported value, which is then ConfigValue::Unknown, or is an
argument of the merge the file exports (mergeConfig(createBase({ … }), { … })), which then has an unknown
spread. A define* call (defineConfig(createBase(options))) is looked through to the expression it wraps, a
top-level constant to its initialiser, and a config function the tool calls whose body is one expression or a
single return (export default () => createConfig({ … })) to what it returns, its parameters unknown.
Such a call nested in an object or array literal of that value keeps its arguments too, each in an object under
the keys it is found at: { test: createTest({ setupFiles }) } keeps { test: { setupFiles } }, so a file
named under a key that excludes files stays under it. The values are those the evaluation computed. Empty
otherwise; an unfollowed call anywhere else, such as one a function body computes in a local first, keeps no
arguments.
Trait Implementations§
Source§impl Clone for ExtractedConfig
impl Clone for ExtractedConfig
Source§impl Debug for ExtractedConfig
impl Debug for ExtractedConfig
Source§impl PartialEq for ExtractedConfig
impl PartialEq for ExtractedConfig
impl StructuralPartialEq for ExtractedConfig
Auto Trait Implementations§
impl Forget for ExtractedConfig
impl Freeze for ExtractedConfig
impl Move for ExtractedConfig
impl RefUnwindSafe for ExtractedConfig
impl Send for ExtractedConfig
impl Sync for ExtractedConfig
impl Unpin for ExtractedConfig
impl UnsafeUnpin for ExtractedConfig
impl UnwindSafe for ExtractedConfig
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
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> ErasedDestructor for Twhere
T: 'static,
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