Struct rbx_reflection::ClassDescriptor[][src]

#[non_exhaustive]pub struct ClassDescriptor<'a> {
    pub name: Cow<'a, str>,
    pub tags: HashSet<ClassTag>,
    pub superclass: Option<Cow<'a, str>>,
    pub properties: HashMap<Cow<'a, str>, PropertyDescriptor<'a>>,
    pub default_properties: HashMap<Cow<'a, str>, Variant>,
}

Describes a class of Instance, its properties, and its relation to other classes of Instance.

Fields (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 class, like "Folder" or "FlagStand".

tags: HashSet<ClassTag>

A set of all of the tags attached to this class.

superclass: Option<Cow<'a, str>>

If this class descends from another class, contains the name of that class.

properties: HashMap<Cow<'a, str>, PropertyDescriptor<'a>>

A map of all of the properties available on this class.

default_properties: HashMap<Cow<'a, str>, Variant>

A map of the default properties for this instance if a value is not defined in serialization or freshly inserted with Instance.new.

Implementations

impl<'a> ClassDescriptor<'a>[src]

pub fn new<S: Into<Cow<'a, str>>>(name: S) -> Self[src]

Creates a new ClassDescriptor with the given name.

Trait Implementations

impl<'a> Clone for ClassDescriptor<'a>[src]

impl<'a> Debug for ClassDescriptor<'a>[src]

impl<'de, 'a> Deserialize<'de> for ClassDescriptor<'a>[src]

impl<'a> Serialize for ClassDescriptor<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,