pub struct PHPEnumCase {
pub name: String,
pub value: Option<String>,
}Expand description
PHP 8.1 backed enum variant.
Fields§
§name: StringVariant name
value: Option<String>Backing value for backed enums
Trait Implementations§
Source§impl Clone for PHPEnumCase
impl Clone for PHPEnumCase
Source§fn clone(&self) -> PHPEnumCase
fn clone(&self) -> PHPEnumCase
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 PHPEnumCase
impl Debug for PHPEnumCase
Source§impl PartialEq for PHPEnumCase
impl PartialEq for PHPEnumCase
impl StructuralPartialEq for PHPEnumCase
Auto Trait Implementations§
impl Freeze for PHPEnumCase
impl RefUnwindSafe for PHPEnumCase
impl Send for PHPEnumCase
impl Sync for PHPEnumCase
impl Unpin for PHPEnumCase
impl UnsafeUnpin for PHPEnumCase
impl UnwindSafe for PHPEnumCase
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