pub struct PolicyV2Config {
pub version: u32,
pub roles: Vec<String>,
pub rules: Vec<PolicyRule>,
pub permissions: Option<PermissionsConfig>,
}Fields§
§version: u32§roles: Vec<String>§rules: Vec<PolicyRule>§permissions: Option<PermissionsConfig>RBAC permissions (optional, additive to v2 schema).
Trait Implementations§
Source§impl Clone for PolicyV2Config
impl Clone for PolicyV2Config
Source§fn clone(&self) -> PolicyV2Config
fn clone(&self) -> PolicyV2Config
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 PolicyV2Config
impl Debug for PolicyV2Config
Source§impl<'de> Deserialize<'de> for PolicyV2Config
impl<'de> Deserialize<'de> for PolicyV2Config
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
Auto Trait Implementations§
impl Freeze for PolicyV2Config
impl RefUnwindSafe for PolicyV2Config
impl Send for PolicyV2Config
impl Sync for PolicyV2Config
impl Unpin for PolicyV2Config
impl UnsafeUnpin for PolicyV2Config
impl UnwindSafe for PolicyV2Config
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