pub struct PhpParameter {
pub name: String,
pub param_type: Option<PhpType>,
pub default: Option<Box<PhpExpression>>,
pub by_ref: bool,
pub variadic: bool,
}Expand description
PHP 参数
Fields§
§name: String§param_type: Option<PhpType>§default: Option<Box<PhpExpression>>§by_ref: bool§variadic: boolTrait Implementations§
Source§impl Clone for PhpParameter
impl Clone for PhpParameter
Source§fn clone(&self) -> PhpParameter
fn clone(&self) -> PhpParameter
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 PhpParameter
impl Debug for PhpParameter
Source§impl<'de> Deserialize<'de> for PhpParameter
impl<'de> Deserialize<'de> for PhpParameter
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 PhpParameter
impl PartialEq for PhpParameter
Source§impl Serialize for PhpParameter
impl Serialize for PhpParameter
impl StructuralPartialEq for PhpParameter
Auto Trait Implementations§
impl Freeze for PhpParameter
impl RefUnwindSafe for PhpParameter
impl Send for PhpParameter
impl Sync for PhpParameter
impl Unpin for PhpParameter
impl UnwindSafe for PhpParameter
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