Skip to main content

build_candidate_object

Function build_candidate_object 

Source
pub fn build_candidate_object(
    policy: &str,
    replaces: Option<&str>,
    content: Value,
) -> Value
Expand description

Build the PostgresPolicyCandidate object to create.

generateName rather than a fixed name: two reviewers filing against the same policy at the same moment must not collide, and a candidate is a one-shot object that is never re-applied.