pub struct CallFunctionTaskDefinitionBuilder { /* private fields */ }Expand description
Builder for constructing a call task that invokes a function.
Implementations§
Source§impl CallFunctionTaskDefinitionBuilder
impl CallFunctionTaskDefinitionBuilder
pub fn new(function: &str) -> Self
Sourcepub fn with(&mut self, name: &str, value: Value) -> &mut Self
pub fn with(&mut self, name: &str, value: Value) -> &mut Self
Adds a single named argument to the function call.
Sourcepub fn with_arguments(&mut self, arguments: HashMap<String, Value>) -> &mut Self
pub fn with_arguments(&mut self, arguments: HashMap<String, Value>) -> &mut Self
Replaces all function call arguments with the provided map.
Auto Trait Implementations§
impl Freeze for CallFunctionTaskDefinitionBuilder
impl RefUnwindSafe for CallFunctionTaskDefinitionBuilder
impl Send for CallFunctionTaskDefinitionBuilder
impl Sync for CallFunctionTaskDefinitionBuilder
impl Unpin for CallFunctionTaskDefinitionBuilder
impl UnsafeUnpin for CallFunctionTaskDefinitionBuilder
impl UnwindSafe for CallFunctionTaskDefinitionBuilder
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