pub struct PhpProperty {
pub name: String,
pub property_type: Option<PhpType>,
pub default: Option<Box<PhpExpression>>,
pub modifiers: Vec<PhpModifier>,
}Expand description
PHP 属性
Fields§
§name: String§property_type: Option<PhpType>§default: Option<Box<PhpExpression>>§modifiers: Vec<PhpModifier>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<'de> Deserialize<'de> for PhpProperty
impl<'de> Deserialize<'de> for PhpProperty
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PhpProperty
impl PartialEq for PhpProperty
Source§impl Serialize for PhpProperty
impl Serialize 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 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