Enum rbx_reflection::Scriptability [−][src]
#[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.
The property is not accessible to Lua scripts at all.
The property can be read from or written to with regular assignments.
The property can only be read from.
The property can only be written to.
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
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
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
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V