#[non_exhaustive]pub struct LoadedRule {
pub rule: PermissionRuleEntry,
pub tier: Tier,
pub machine_local: bool,
}Expand description
A permission rule as loaded: the rule, the tier whose file it came from,
and whether that file was the tier’s settings.local.json.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rule: PermissionRuleEntry§tier: Tier§machine_local: boolImplementations§
Source§impl LoadedRule
impl LoadedRule
pub fn new(rule: PermissionRuleEntry, tier: Tier, machine_local: bool) -> Self
Trait Implementations§
Source§impl Clone for LoadedRule
impl Clone for LoadedRule
Auto Trait Implementations§
impl Forget for LoadedRule
impl Freeze for LoadedRule
impl Move for LoadedRule
impl RefUnwindSafe for LoadedRule
impl Send for LoadedRule
impl Sync for LoadedRule
impl Unpin for LoadedRule
impl UnsafeUnpin for LoadedRule
impl UnwindSafe for LoadedRule
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