#[repr(C)]pub struct lysp_node {
pub parent: *mut lysp_node,
pub nodetype: u16,
pub flags: u16,
pub next: *mut lysp_node,
pub name: *const c_char,
pub dsc: *const c_char,
pub ref_: *const c_char,
pub iffeatures: *mut lysp_qname,
pub exts: *mut lysp_ext_instance,
}Expand description
@brief Generic YANG data node
Fields§
§parent: *mut lysp_node< parent node (NULL if this is a top-level node)
nodetype: u16< [type of the node](@ref schemanodetypes) (mandatory)
flags: u16< [schema node flags](@ref snodeflags)
next: *mut lysp_node< next sibling node (NULL if there is no one)
name: *const c_char< node name (mandatory)
dsc: *const c_char< description statement
ref_: *const c_char< reference statement
iffeatures: *mut lysp_qname< list of if-feature expressions ([sized array](@ref sizedarrays)), must be qname because of refines
exts: *mut lysp_ext_instance< list of the extension instances ([sized array](@ref sizedarrays))
Trait Implementations§
Auto Trait Implementations§
impl !Send for lysp_node
impl !Sync for lysp_node
impl Freeze for lysp_node
impl RefUnwindSafe for lysp_node
impl Unpin for lysp_node
impl UnsafeUnpin for lysp_node
impl UnwindSafe for lysp_node
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