#[repr(C)]pub struct lyd_attr {
pub parent: *mut lyd_node_opaq,
pub next: *mut lyd_attr,
pub name: ly_opaq_name,
pub value: *const c_char,
pub hints: u32,
pub format: Type,
pub val_prefix_data: *mut c_void,
}Expand description
@brief Generic attribute structure.
Fields§
§parent: *mut lyd_node_opaq< data node where the attribute is placed
next: *mut lyd_attr< pointer to the next attribute
name: ly_opaq_name< attribute name with module information
value: *const c_char< attribute value
hints: u32< additional information about from the data source, see the [hints list](@ref lydhints)
format: Type< format of the attribute and any prefixes, ::LY_VALUE_XML or ::LY_VALUE_JSON
val_prefix_data: *mut c_void< format-specific prefix data
Trait Implementations§
Auto Trait Implementations§
impl !Send for lyd_attr
impl !Sync for lyd_attr
impl Freeze for lyd_attr
impl RefUnwindSafe for lyd_attr
impl Unpin for lyd_attr
impl UnsafeUnpin for lyd_attr
impl UnwindSafe for lyd_attr
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