pub struct PHPProperty {
pub name: String,
pub ty: Option<PHPType>,
pub visibility: PHPVisibility,
pub is_static: bool,
pub readonly: bool,
pub default: Option<String>,
}Expand description
A PHP class property.
Fields§
§name: StringProperty name (without $)
ty: Option<PHPType>Optional type hint
visibility: PHPVisibilityVisibility
is_static: boolWhether this is static
readonly: boolWhether this is readonly (PHP 8.1+)
default: Option<String>Optional default value expression (as string)
Implementations§
Trait Implementations§
Source§impl Clone for PHPProperty
impl Clone for PHPProperty
Source§fn clone(&self) -> PHPProperty
fn clone(&self) -> PHPProperty
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PHPProperty
impl Debug for PHPProperty
Source§impl PartialEq for PHPProperty
impl PartialEq for PHPProperty
impl StructuralPartialEq for PHPProperty
Auto Trait Implementations§
impl Freeze for PHPProperty
impl RefUnwindSafe for PHPProperty
impl Send for PHPProperty
impl Sync for PHPProperty
impl Unpin for PHPProperty
impl UnsafeUnpin for PHPProperty
impl UnwindSafe for PHPProperty
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