pub struct NodeProperty {
pub name: NodePropertyName,
pub value: Option<PropertyValue>,
}
Expand description
Represents a property of a node in a Code Property Graph.
Each property has a name and an optional value.
Fields§
§name: NodePropertyName
§value: Option<PropertyValue>
Trait Implementations§
Source§impl Clone for NodeProperty
impl Clone for NodeProperty
Source§fn clone(&self) -> NodeProperty
fn clone(&self) -> NodeProperty
Returns a copy 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 NodeProperty
impl Debug for NodeProperty
Source§impl<'de> Deserialize<'de> for NodeProperty
impl<'de> Deserialize<'de> for NodeProperty
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 NodeProperty
impl PartialEq for NodeProperty
Source§impl Serialize for NodeProperty
impl Serialize for NodeProperty
impl StructuralPartialEq for NodeProperty
Auto Trait Implementations§
impl Freeze for NodeProperty
impl RefUnwindSafe for NodeProperty
impl Send for NodeProperty
impl Sync for NodeProperty
impl Unpin for NodeProperty
impl UnwindSafe for NodeProperty
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