Struct rbx_reflection::PropertyDescriptor
source · #[non_exhaustive]pub struct PropertyDescriptor<'a> {
pub name: Cow<'a, str>,
pub scriptability: Scriptability,
pub data_type: DataType<'a>,
pub tags: HashSet<PropertyTag>,
pub kind: PropertyKind<'a>,
}
Expand description
Describes a property on an Instance.
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.name: Cow<'a, str>
The name of the property, like “Position” or “heat_xml”.
scriptability: Scriptability
The maximum access to this property available to Lua.
data_type: DataType<'a>
The type of the value described by this descriptor.
A set of the tags that apply to this property.
kind: PropertyKind<'a>
The kind of property this is, including whether it is canonical.
Implementations§
Trait Implementations§
source§impl<'a> Clone for PropertyDescriptor<'a>
impl<'a> Clone for PropertyDescriptor<'a>
source§fn clone(&self) -> PropertyDescriptor<'a>
fn clone(&self) -> PropertyDescriptor<'a>
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<'a> Debug for PropertyDescriptor<'a>
impl<'a> Debug for PropertyDescriptor<'a>
source§impl<'de, 'a> Deserialize<'de> for PropertyDescriptor<'a>
impl<'de, 'a> Deserialize<'de> for PropertyDescriptor<'a>
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
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PropertyDescriptor<'a>
impl<'a> Send for PropertyDescriptor<'a>
impl<'a> Sync for PropertyDescriptor<'a>
impl<'a> Unpin for PropertyDescriptor<'a>
impl<'a> UnwindSafe for PropertyDescriptor<'a>
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