pub struct MetaPolicy {
pub closed: bool,
pub roles: Vec<String>,
}Expand description
定义层(register / 覆盖)门禁策略(分步 03)。
closed = false(缺省):Open —— 全放行,保持既有 parity(harness / 测试零变更);closed = true:Closed —— 仅internal或roles白名单命中者可注册/覆盖。
Fields§
§closed: bool是否启用门禁(false = Open,缺省)。
roles: Vec<String>Closed 时的授权角色白名单(空 = 仅 internal 可注册)。
Trait Implementations§
Source§impl Clone for MetaPolicy
impl Clone for MetaPolicy
Source§impl Debug for MetaPolicy
impl Debug for MetaPolicy
Auto Trait Implementations§
impl Freeze for MetaPolicy
impl RefUnwindSafe for MetaPolicy
impl Send for MetaPolicy
impl Sync for MetaPolicy
impl Unpin for MetaPolicy
impl UnsafeUnpin for MetaPolicy
impl UnwindSafe for MetaPolicy
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