pub struct PolicyModuleView {
pub id: String,
pub name: String,
pub description: Option<String>,
pub module: String,
pub applies_to: Vec<String>,
pub priority: i32,
pub enabled: bool,
pub version: u64,
pub created_at: String,
pub updated_at: String,
pub ext: Value,
}Expand description
Canonical policy/_shared PolicyModule — the projection of a stored
policy row returned by list, get, and upsert.
Fields§
§id: String§name: String§description: Option<String>§module: StringRego source. Entry point is the package’s decision rule.
applies_to: Vec<String>Trust contexts this policy applies to; empty ⇒ all.
priority: i32Higher runs first; the first non-null decision wins.
enabled: bool§version: u64Monotone revision counter, and the optimistic-concurrency token
upsert/delete check expectedVersion against.
created_at: String§updated_at: String§ext: ValueEcosystem extension members. Carries the declarative approvals model
(openvtc.approvals / openvtc.approver-sets) on the reserved row —
see crate::approvals.
Trait Implementations§
Source§impl Clone for PolicyModuleView
impl Clone for PolicyModuleView
Source§fn clone(&self) -> PolicyModuleView
fn clone(&self) -> PolicyModuleView
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 PolicyModuleView
impl Debug for PolicyModuleView
Source§impl<'de> Deserialize<'de> for PolicyModuleView
impl<'de> Deserialize<'de> for PolicyModuleView
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 PolicyModuleView
Source§impl PartialEq for PolicyModuleView
impl PartialEq for PolicyModuleView
Source§impl Serialize for PolicyModuleView
impl Serialize for PolicyModuleView
impl StructuralPartialEq for PolicyModuleView
Auto Trait Implementations§
impl Freeze for PolicyModuleView
impl RefUnwindSafe for PolicyModuleView
impl Send for PolicyModuleView
impl Sync for PolicyModuleView
impl Unpin for PolicyModuleView
impl UnsafeUnpin for PolicyModuleView
impl UnwindSafe for PolicyModuleView
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