pub enum PickleValue {
None,
Bool(bool),
Int(i64),
Float(f64),
String(String),
List(Vec<PickleValue>),
Dict(HashMap<String, PickleValue>),
Bytes(Vec<u8>),
}Expand description
Simplified representation of pickle data
This enum provides a JSON-like structure that’s easier to work with than the internal pickle Object type.
Variants§
None
None/null value
Bool(bool)
Boolean value
Int(i64)
Integer value
Float(f64)
Floating point value
String(String)
String value
List(Vec<PickleValue>)
List/array of values
Dict(HashMap<String, PickleValue>)
Dictionary/map of string keys to values
Bytes(Vec<u8>)
Binary data
Trait Implementations§
Source§impl Clone for PickleValue
impl Clone for PickleValue
Source§fn clone(&self) -> PickleValue
fn clone(&self) -> PickleValue
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 PickleValue
impl Debug for PickleValue
Source§impl PartialEq for PickleValue
impl PartialEq for PickleValue
impl StructuralPartialEq for PickleValue
Auto Trait Implementations§
impl Freeze for PickleValue
impl RefUnwindSafe for PickleValue
impl Send for PickleValue
impl Sync for PickleValue
impl Unpin for PickleValue
impl UnwindSafe for PickleValue
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