pub enum PolicyView {
Full(AdmissionPolicy),
Summary(PolicySummary),
}Expand description
The full policy or the public summary, by the viewer’s permissions
(admission.policy.updated body, §9.2). The full form is tried first.
Variants§
Trait Implementations§
Source§impl Clone for PolicyView
impl Clone for PolicyView
Source§fn clone(&self) -> PolicyView
fn clone(&self) -> PolicyView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PolicyView
impl Debug for PolicyView
Source§impl<'de> Deserialize<'de> for PolicyView
impl<'de> Deserialize<'de> for PolicyView
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
impl Eq for PolicyView
Source§impl PartialEq for PolicyView
impl PartialEq for PolicyView
Source§impl Serialize for PolicyView
impl Serialize for PolicyView
impl StructuralPartialEq for PolicyView
Auto Trait Implementations§
impl Freeze for PolicyView
impl RefUnwindSafe for PolicyView
impl Send for PolicyView
impl Sync for PolicyView
impl Unpin for PolicyView
impl UnsafeUnpin for PolicyView
impl UnwindSafe for PolicyView
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