#[repr(C)]pub struct lysp_import {
pub module: *mut lys_module,
pub name: *const c_char,
pub prefix: *const c_char,
pub dsc: *const c_char,
pub ref_: *const c_char,
pub exts: *mut lysp_ext_instance,
pub flags: u16,
pub rev: [c_char; 11],
}Expand description
@brief YANG import-stmt
Fields§
§module: *mut lys_module< pointer to the imported module (mandatory, but resolved when the referring module is completely parsed)
name: *const c_char< name of the imported module (mandatory)
prefix: *const c_char< prefix for the data from the imported schema (mandatory)
dsc: *const c_char< description
ref_: *const c_char< reference
exts: *mut lysp_ext_instance< list of the extension instances ([sized array](@ref sizedarrays))
flags: u16< LYS_INTERNAL value (@ref snodeflags)
rev: [c_char; 11]< revision-date of the imported module
Trait Implementations§
Source§impl Clone for lysp_import
impl Clone for lysp_import
Source§fn clone(&self) -> lysp_import
fn clone(&self) -> lysp_import
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 moreimpl Copy for lysp_import
Source§impl Debug for lysp_import
impl Debug for lysp_import
Auto Trait Implementations§
impl !Send for lysp_import
impl !Sync for lysp_import
impl Freeze for lysp_import
impl RefUnwindSafe for lysp_import
impl Unpin for lysp_import
impl UnsafeUnpin for lysp_import
impl UnwindSafe for lysp_import
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