#[repr(C)]pub struct Property {
pub name: RString,
pub docs: DocBlock,
pub ty: Option<DataType>,
pub vis: Visibility,
pub static_: bool,
pub nullable: bool,
pub readonly: bool,
pub default: Option<RString>,
}Expand description
Represents a property attached to an exported class.
Fields§
§name: RStringName of the property.
docs: DocBlockDocumentation comments for the property.
ty: Option<DataType>Type of the property.
vis: VisibilityVisibility of the property.
static_: boolWhether the property is static.
nullable: boolWhether the property is nullable.
readonly: boolWhether the property is readonly.
default: Option<RString>Default value of the property as a PHP stub string.
Trait Implementations§
Source§impl From<ClassProperty> for Property
impl From<ClassProperty> for Property
Source§fn from(val: ClassProperty) -> Self
fn from(val: ClassProperty) -> Self
Converts to this type from the input type.
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 UnsafeUnpin 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