Skip to content

Commit

Permalink
docs: add docstring to ValidateRequest
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrizio Sestito <fabrizio.sestito@suse.com>
  • Loading branch information
fabriziosestito committed Oct 20, 2023
1 parent 8e01b1e commit 08d112a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/policy_evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ impl fmt::Display for PolicyExecutionMode {
}
}

/// A validation request that can be sent to a policy evaluator.
/// It can be either a raw JSON object, or a Kubernetes AdmissionRequest.
#[derive(Clone, Debug, Serialize)]
#[serde(untagged)]
pub enum ValidateRequest {
Expand Down

0 comments on commit 08d112a

Please sign in to comment.