pub struct LegacyNode {
pub id: String,
pub label: Option<String>,
pub kind: Option<String>,
pub node_type: Option<String>,
pub language: Option<String>,
pub source_file: Option<String>,
pub source_range: Option<LegacyRange>,
pub selection_start: Option<LegacyPoint>,
pub selection_end: Option<LegacyPoint>,
pub attributes: BTreeMap<String, AttributeValue>,
}Expand description
Legacy node shape with all unknown fields preserved as attributes.
Fields§
§id: String§label: Option<String>§kind: Option<String>§node_type: Option<String>§language: Option<String>§source_file: Option<String>§source_range: Option<LegacyRange>§selection_start: Option<LegacyPoint>§selection_end: Option<LegacyPoint>§attributes: BTreeMap<String, AttributeValue>Implementations§
Trait Implementations§
Source§impl Clone for LegacyNode
impl Clone for LegacyNode
Source§fn clone(&self) -> LegacyNode
fn clone(&self) -> LegacyNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LegacyNode
impl Debug for LegacyNode
Source§impl<'de> Deserialize<'de> for LegacyNode
impl<'de> Deserialize<'de> for LegacyNode
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
impl Eq for LegacyNode
Source§impl PartialEq for LegacyNode
impl PartialEq for LegacyNode
Source§impl Serialize for LegacyNode
impl Serialize for LegacyNode
impl StructuralPartialEq for LegacyNode
Auto Trait Implementations§
impl Freeze for LegacyNode
impl RefUnwindSafe for LegacyNode
impl Send for LegacyNode
impl Sync for LegacyNode
impl Unpin for LegacyNode
impl UnsafeUnpin for LegacyNode
impl UnwindSafe for LegacyNode
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