From bfd6dc2d384a26a993229fae6c1e78ec41eaaf81 Mon Sep 17 00:00:00 2001 From: Fabrizio Sestito Date: Fri, 20 Oct 2023 16:08:38 +0200 Subject: [PATCH] docs: add docstrings Signed-off-by: Fabrizio Sestito --- src/raw_review.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/raw_review.rs b/src/raw_review.rs index 8a8ca0c6..4002f19c 100644 --- a/src/raw_review.rs +++ b/src/raw_review.rs @@ -1,11 +1,13 @@ use policy_evaluator::admission_response::AdmissionResponse; use serde::{Deserialize, Serialize}; +/// A review request that contains a raw json value. #[derive(Serialize, Deserialize, Debug)] pub(crate) struct RawReviewRequest { pub(crate) request: serde_json::Value, } +/// A review response from a raw policy evaluation. #[derive(Serialize, Deserialize, Debug)] pub(crate) struct RawReviewResponse { pub(crate) response: AdmissionResponse,