Enum rbx_reflection::Scriptability
source · #[non_exhaustive]pub enum Scriptability {
None,
ReadWrite,
Read,
Write,
Custom,
}
Expand description
Defines how Lua can access a property, if at all.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
The property is not accessible to Lua scripts at all.
ReadWrite
The property can be read from or written to with regular assignments.
Read
The property can only be read from.
Write
The property can only be written to.
Custom
The property can only be modified indirectly by Lua scripts.
A common example is the Tags
property, which is readable and writable
through methods on CollectionService
.
Trait Implementations§
source§impl Clone for Scriptability
impl Clone for Scriptability
source§fn clone(&self) -> Scriptability
fn clone(&self) -> Scriptability
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 moresource§impl Debug for Scriptability
impl Debug for Scriptability
source§impl<'de> Deserialize<'de> for Scriptability
impl<'de> Deserialize<'de> for Scriptability
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Scriptability
impl Serialize for Scriptability
impl Copy for Scriptability
Auto Trait Implementations§
impl RefUnwindSafe for Scriptability
impl Send for Scriptability
impl Sync for Scriptability
impl Unpin for Scriptability
impl UnwindSafe for Scriptability
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