Skip to main content

get_required_resources_as

Function get_required_resources_as 

Source
pub fn get_required_resources_as<T: DeserializeOwned>(
    req: &RunFunctionRequest,
    name: &str,
) -> Result<Option<Vec<T>>, Error>
Expand description

Gets required resources by requirement name as typed values.

Returns Ok(None) when Crossplane has not (yet) resolved the requirement, and an empty Vec when it resolved the requirement but found no matches. Integral numbers are restored to integers first, as in crate::resource::get, so integer fields of generated models deserialize.