pub struct ModelDecision {
pub allowed_actions: HashSet<String>,
pub read_fields: Option<HashSet<String>>,
pub write_fields: Option<HashSet<String>>,
}Expand description
单模型判决视图(decide 产出)
Fields§
§allowed_actions: HashSet<String>§read_fields: Option<HashSet<String>>None = 字段维度不收紧(与 crate::permission 的 Option 语义一致)
write_fields: Option<HashSet<String>>Trait Implementations§
Source§impl Clone for ModelDecision
impl Clone for ModelDecision
Auto Trait Implementations§
impl Freeze for ModelDecision
impl RefUnwindSafe for ModelDecision
impl Send for ModelDecision
impl Sync for ModelDecision
impl Unpin for ModelDecision
impl UnsafeUnpin for ModelDecision
impl UnwindSafe for ModelDecision
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