pub struct Property {
pub name: String,
pub typ: Type,
pub documentation: String,
}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: StringName of the property
typ: TypeType of the property
documentation: StringDocumentation associated with the property
Trait Implementations§
impl Eq for Property
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
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