pub enum PropertyValueEnum {
Show 13 variants
StringValue(String),
BoolValue(bool),
IntValue(i32),
LongValue(i64),
FloatValue(f32),
DoubleValue(f64),
StringList(StringList),
BoolList(BoolList),
IntList(IntList),
LongList(LongList),
FloatList(FloatList),
DoubleList(DoubleList),
ContainedRefs(ContainedRefs),
}Expand description
Represents the different types of values that a property can have in a CPG.
This enum uses serde’s tagged representation with “type” and “value” fields to support proper serialization and deserialization to/from JSON.
Variants§
StringValue(String)
BoolValue(bool)
IntValue(i32)
LongValue(i64)
FloatValue(f32)
DoubleValue(f64)
StringList(StringList)
BoolList(BoolList)
IntList(IntList)
LongList(LongList)
FloatList(FloatList)
DoubleList(DoubleList)
ContainedRefs(ContainedRefs)
Trait Implementations§
Source§impl Clone for PropertyValueEnum
impl Clone for PropertyValueEnum
Source§fn clone(&self) -> PropertyValueEnum
fn clone(&self) -> PropertyValueEnum
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 PropertyValueEnum
impl Debug for PropertyValueEnum
Source§impl<'de> Deserialize<'de> for PropertyValueEnum
impl<'de> Deserialize<'de> for PropertyValueEnum
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 PropertyValueEnum
impl PartialEq for PropertyValueEnum
Source§impl Serialize for PropertyValueEnum
impl Serialize for PropertyValueEnum
impl StructuralPartialEq for PropertyValueEnum
Auto Trait Implementations§
impl Freeze for PropertyValueEnum
impl RefUnwindSafe for PropertyValueEnum
impl Send for PropertyValueEnum
impl Sync for PropertyValueEnum
impl Unpin for PropertyValueEnum
impl UnwindSafe for PropertyValueEnum
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