pub struct E2eConfig {
pub fixtures: String,
pub output: String,
pub languages: Vec<String>,
pub call: CallConfig,
pub packages: HashMap<String, PackageRef>,
pub format: HashMap<String, String>,
pub fields: HashMap<String, String>,
pub fields_optional: HashSet<String>,
}Expand description
Root e2e configuration from [e2e] section of alef.toml.
Fields§
§fixtures: StringDirectory containing fixture JSON files (default: “fixtures”).
output: StringOutput directory for generated e2e test projects (default: “e2e”).
languages: Vec<String>Languages to generate e2e tests for. Defaults to top-level languages list.
call: CallConfigFunction call configuration.
packages: HashMap<String, PackageRef>Per-language package reference overrides.
format: HashMap<String, String>Per-language formatter commands.
fields: HashMap<String, String>Field path aliases: maps fixture field paths to actual API struct paths. E.g., “metadata.title” -> “metadata.document.title” Supports struct access (foo.bar), map access (foo[key]), direct fields.
fields_optional: HashSet<String>Fields that are Optional/nullable in the return type. Rust generators use .as_deref().unwrap_or(“”) for strings, .is_some() for structs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for E2eConfig
impl<'de> Deserialize<'de> for E2eConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<E2eConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<E2eConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for E2eConfig
impl Serialize for E2eConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for E2eConfig
impl RefUnwindSafe for E2eConfig
impl Send for E2eConfig
impl Sync for E2eConfig
impl Unpin for E2eConfig
impl UnsafeUnpin for E2eConfig
impl UnwindSafe for E2eConfig
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