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 24, 2023
1 parent 26b3b30 commit 2f227f2
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 2f227f2

Please sign in to comment.