pub struct PolicyPreview {
pub matches: Option<Vec<PolicyMatch>>,
pub subject_type: Option<String>,
pub preview_for: Option<String>,
pub unknown: Unknown,
}Expand description
What previewing a policy answers: the rules that would match, and the question echoed back.
Fields§
§matches: Option<Vec<PolicyMatch>>§subject_type: Option<String>Echoes the type asked for.
preview_for: Option<String>Echoes the previewFor asked for.
unknown: UnknownEverything the description did not mention, kept so that a control plane ahead of this build still answers usefully.
Implementations§
Trait Implementations§
Source§impl Clone for PolicyPreview
impl Clone for PolicyPreview
Source§impl Debug for PolicyPreview
impl Debug for PolicyPreview
Source§impl<'de> Deserialize<'de> for PolicyPreview
impl<'de> Deserialize<'de> for PolicyPreview
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PolicyPreview
impl PartialEq for PolicyPreview
Source§impl Serialize for PolicyPreview
impl Serialize for PolicyPreview
impl StructuralPartialEq for PolicyPreview
Auto Trait Implementations§
impl Freeze for PolicyPreview
impl RefUnwindSafe for PolicyPreview
impl Send for PolicyPreview
impl Sync for PolicyPreview
impl Unpin for PolicyPreview
impl UnsafeUnpin for PolicyPreview
impl UnwindSafe for PolicyPreview
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more