Skip to main content

resource

Function resource 

pub fn resource(
    kind: &str,
    label: &str,
    action_id: &str,
    action_label: &str,
) -> Resource
Expand description

Build one resource with a unit operation.

§Panics

Panics only if serializing Rust’s unit value fails, which the JSON encoder represents unconditionally as null.