pub struct FuncCall {
pub name: FuncName,
pub args: Vec<Expression>,
pub expand_final: bool,
}
Expand description
Represents a function call expression with zero or more arguments.
Fields§
§name: FuncName
The function name.
args: Vec<Expression>
The function arguments.
expand_final: bool
If true
, the final argument should be an array which will expand to be one argument per
element.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FuncCall
impl<'de> Deserialize<'de> for FuncCall
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
Source§impl Evaluate for FuncCall
impl Evaluate for FuncCall
Source§fn evaluate(&self, ctx: &Context<'_>) -> EvalResult<Self::Output>
fn evaluate(&self, ctx: &Context<'_>) -> EvalResult<Self::Output>
Recursively evaluates all HCL templates and expressions in the implementing type using the
variables and functions declared in the
Context
. Read moreSource§fn evaluate_in_place(&mut self, ctx: &Context<'_>) -> EvalResult<(), Errors>
fn evaluate_in_place(&mut self, ctx: &Context<'_>) -> EvalResult<(), Errors>
Recursively tries to evaluate all nested expressions in place. Read more
Source§impl Format for FuncCall
impl Format for FuncCall
Source§fn format<W>(&self, fmt: &mut Formatter<'_, W>) -> Result<()>where
W: Write,
fn format<W>(&self, fmt: &mut Formatter<'_, W>) -> Result<()>where
W: Write,
Formats a HCL structure using a formatter and writes the result to the provided writer. Read more
Source§impl From<FuncCall> for Expression
impl From<FuncCall> for Expression
Source§impl<'de> IntoDeserializer<'de, Error> for FuncCall
impl<'de> IntoDeserializer<'de, Error> for FuncCall
Source§type Deserializer = MapAccessDeserializer<FuncCallAccess>
type Deserializer = MapAccessDeserializer<FuncCallAccess>
The type of the deserializer being converted into.
Source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
impl Eq for FuncCall
impl StructuralPartialEq for FuncCall
Auto Trait Implementations§
impl Freeze for FuncCall
impl RefUnwindSafe for FuncCall
impl Send for FuncCall
impl Sync for FuncCall
impl Unpin for FuncCall
impl UnwindSafe for FuncCall
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.