pub enum DefaultPermissionRule {
AllowAllCommands,
Allow(Vec<String>),
}
Expand description
Variants of a generated default permission that can be used on an InlinedPlugin
.
Variants§
AllowAllCommands
Allow all commands from InlinedPlugin::commands
.
Allow(Vec<String>)
Allow the given list of permissions.
Note that the list refers to permissions instead of command names,
so for example a command called execute
would need to be allowed as allow-execute
.
Trait Implementations§
Source§impl Clone for DefaultPermissionRule
impl Clone for DefaultPermissionRule
Source§fn clone(&self) -> DefaultPermissionRule
fn clone(&self) -> DefaultPermissionRule
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DefaultPermissionRule
impl RefUnwindSafe for DefaultPermissionRule
impl Send for DefaultPermissionRule
impl Sync for DefaultPermissionRule
impl Unpin for DefaultPermissionRule
impl UnwindSafe for DefaultPermissionRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)