pub enum PolicyUpdate {
Upsert {
policy: OpaPolicy,
},
Remove {
policy_id: String,
},
Reset {
capability: Option<String>,
},
}Expand description
Policy update messages delivered over the control plane.
Updates are applied in-order by subscribers. reset clears previously
registered policies either globally or for a specific capability while
remove drops a single policy by identifier. upsert replaces or inserts a
policy definition.
Variants§
Upsert
Insert or replace a policy definition.
Remove
Remove a policy definition by id.
Reset
Clear all policies (or those scoped to a capability).
Trait Implementations§
Source§impl Clone for PolicyUpdate
impl Clone for PolicyUpdate
Source§fn clone(&self) -> PolicyUpdate
fn clone(&self) -> PolicyUpdate
Returns a duplicate of the value. Read more
1.0.0 · 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 PolicyUpdate
impl Debug for PolicyUpdate
Source§impl<'de> Deserialize<'de> for PolicyUpdate
impl<'de> Deserialize<'de> for PolicyUpdate
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 PolicyUpdate
impl PartialEq for PolicyUpdate
Source§impl Serialize for PolicyUpdate
impl Serialize for PolicyUpdate
impl Eq for PolicyUpdate
impl StructuralPartialEq for PolicyUpdate
Auto Trait Implementations§
impl Freeze for PolicyUpdate
impl RefUnwindSafe for PolicyUpdate
impl Send for PolicyUpdate
impl Sync for PolicyUpdate
impl Unpin for PolicyUpdate
impl UnsafeUnpin for PolicyUpdate
impl UnwindSafe for PolicyUpdate
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