pub enum PhpValue {
Null,
Bool(bool),
Int(i64),
Float(f64),
Str(Vec<u8>),
Array(Vec<(PhpKey, PhpValue)>),
Object {
class: String,
properties: Vec<(PhpKey, PhpValue)>,
},
Custom {
class: String,
data: Vec<u8>,
},
Enum {
class: String,
case: String,
},
Ref(u32),
ObjectRef(u32),
}Expand description
A value in PHP’s serialize format.
Variants§
Null
Bool(bool)
Int(i64)
Float(f64)
Str(Vec<u8>)
Array(Vec<(PhpKey, PhpValue)>)
Object
Custom
C:: a Serializable object’s own payload.
Enum
E:: an enum case.
Ref(u32)
R:n: a PHP reference to slot n.
ObjectRef(u32)
r:n: the same object as slot n.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for PhpValue
impl Freeze for PhpValue
impl Move for PhpValue
impl RefUnwindSafe for PhpValue
impl Send for PhpValuewhere
RawVecInner: Send,
impl Sync for PhpValuewhere
RawVecInner: Sync,
impl Unpin for PhpValue
impl UnsafeUnpin for PhpValuewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(PhpKey, PhpValue)>: UnsafeUnpin,
impl UnwindSafe for PhpValuewhere
RawVecInner: UnwindSafe,
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