Skip to content

Commit

Permalink
docs: add docstrings
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 42178c4 commit bfd6dc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/raw_review.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit bfd6dc2

Please sign in to comment.