Struct gdnative_doc::documentation::Property
source · [−]Expand description
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 Eq for Property
impl StructuralEq for Property
impl StructuralPartialEq for Property
Auto Trait Implementations
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more