pub struct CallConfig {
pub function: String,
pub module: String,
pub result_var: String,
pub async: bool,
pub args: Vec<ArgMapping>,
pub overrides: HashMap<String, CallOverride>,
}Expand description
Configuration for the function call in each test.
Fields§
§function: StringThe function name (alef applies language naming conventions).
module: StringThe module/package where the function lives.
result_var: StringVariable name for the return value (default: “result”).
async: boolWhether the function is async.
args: Vec<ArgMapping>How fixture input fields map to function arguments.
overrides: HashMap<String, CallOverride>Per-language overrides for module/function/etc.
Trait Implementations§
Source§impl Clone for CallConfig
impl Clone for CallConfig
Source§fn clone(&self) -> CallConfig
fn clone(&self) -> CallConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CallConfig
impl Debug for CallConfig
Source§impl Default for CallConfig
impl Default for CallConfig
Source§fn default() -> CallConfig
fn default() -> CallConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CallConfig
impl<'de> Deserialize<'de> for CallConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CallConfig
impl RefUnwindSafe for CallConfig
impl Send for CallConfig
impl Sync for CallConfig
impl Unpin for CallConfig
impl UnsafeUnpin for CallConfig
impl UnwindSafe for CallConfig
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