pub struct LuaPermissionGroups;Expand description
All permission groups.
Implementations§
Source§impl LuaPermissionGroups
impl LuaPermissionGroups
Sourcepub fn groups(&self) -> Vec<LuaPermissionGroup>
pub fn groups(&self) -> Vec<LuaPermissionGroup>
All of the permission groups.
Sourcepub fn object_name(&self) -> &'static str
pub fn object_name(&self) -> &'static str
The class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
Sourcepub fn valid(&self) -> bool
pub fn valid(&self) -> bool
Is this object valid? This Lua object holds a reference to an object within the game engine. It is possible that the game-engine object is removed whilst a mod still holds the corresponding Lua object. If that happens, the object becomes invalid, i.e. this attribute will be false. Mods are advised to check for object validity if any change to the game state might have occurred between the creation of the Lua object and its access.
Sourcepub fn create_group(
&self,
name: Option<&'static str>,
) -> Option<LuaPermissionGroup>
pub fn create_group( &self, name: Option<&'static str>, ) -> Option<LuaPermissionGroup>
Creates a new permission group.
Sourcepub fn get_group(&self, group: IndexOrName) -> Option<LuaPermissionGroup>
pub fn get_group(&self, group: IndexOrName) -> Option<LuaPermissionGroup>
Gets the permission group with the given name or group ID.
Trait Implementations§
Source§impl Clone for LuaPermissionGroups
impl Clone for LuaPermissionGroups
Source§fn clone(&self) -> LuaPermissionGroups
fn clone(&self) -> LuaPermissionGroups
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 moreimpl Copy for LuaPermissionGroups
Source§impl Debug for LuaPermissionGroups
impl Debug for LuaPermissionGroups
Source§impl Default for LuaPermissionGroups
impl Default for LuaPermissionGroups
Source§fn default() -> LuaPermissionGroups
fn default() -> LuaPermissionGroups
Returns the “default value” for a type. Read more
impl Eq for LuaPermissionGroups
Source§impl From<LuaPermissionGroups> for LuaAny
impl From<LuaPermissionGroups> for LuaAny
Source§fn from(_: LuaPermissionGroups) -> Self
fn from(_: LuaPermissionGroups) -> Self
Converts to this type from the input type.
impl LuaObject for LuaPermissionGroups
Source§impl PartialEq for LuaPermissionGroups
impl PartialEq for LuaPermissionGroups
impl StructuralPartialEq for LuaPermissionGroups
Auto Trait Implementations§
impl Freeze for LuaPermissionGroups
impl RefUnwindSafe for LuaPermissionGroups
impl Send for LuaPermissionGroups
impl Sync for LuaPermissionGroups
impl Unpin for LuaPermissionGroups
impl UnsafeUnpin for LuaPermissionGroups
impl UnwindSafe for LuaPermissionGroups
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