Struct gdnative_doc::documentation::Property[][src]

pub struct Property {
    pub name: String,
    pub typ: Type,
    pub documentation: String,
}

Property exported to godot

Example

#[derive(NativeClass)]
#[inherit(Resource)]
struct MyResource {
    /// Some doc
    #[property]
    my_property: String,
}

Translates into:

name: "my_property",
typ: Type::Named("String"),
documentation: "Some doc"

Fields

name: String

Name of the property

typ: Type

Type of the property

documentation: String

Documentation associated with the property

Trait Implementations

impl Clone for Property[src]

impl Debug for Property[src]

impl Eq for Property[src]

impl Hash for Property[src]

impl PartialEq<Property> for Property[src]

impl StructuralEq for Property[src]

impl StructuralPartialEq for Property[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> From<T> for T[src]

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

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.