Struct cmake_file_api::objects::codemodel_v2::codemodel::DirectoryReference
source · #[non_exhaustive]pub struct DirectoryReference {
pub source: PathBuf,
pub build: PathBuf,
pub parent_index: Option<usize>,
pub child_indexes: Vec<usize>,
pub project_index: usize,
pub target_indexes: Vec<usize>,
pub minimum_cmake_version: Option<MinimumCmakeVersion>,
pub has_install_rule: bool,
pub json_file: PathBuf,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.source: PathBuf
Path to the source directory, represented with forward slashes. If the directory is inside the top-level source directory then the path is specified relative to that directory (with . for the top-level source directory itself). Otherwise, the path is absolute.
build: PathBuf
Path to the build directory, represented with forward slashes. If the directory is inside the top-level build directory then the path is specified relative to that directory (with . for the top-level build directory itself). Otherwise, the path is absolute.
parent_index: Option<usize>
Optional member that is present when the directory is not top-level. The value is an unsigned integer 0-based index of another entry in the main directories array that corresponds to the parent directory that added this directory as a subdirectory.
child_indexes: Vec<usize>
Optional member that is present when the directory has subdirectories. Each entry corresponding to child directory created by the add_subdirectory() or subdirs() command. Each entry is an unsigned integer 0-based index of another entry in the main directories array.
project_index: usize
An unsigned integer 0-based index into the main projects array indicating the build system project to which the directory belongs.
target_indexes: Vec<usize>
Optional member that is present when the directory itself has targets, excluding those belonging to subdirectories. Each entry corresponding to the targets. Each entry is an unsigned integer 0-based index into the main targets array.
minimum_cmake_version: Option<MinimumCmakeVersion>
Optional member present when a minimum required version of CMake is known for the directory.
This is the <min>
version given to the most local call to the cmake_minimum_required(VERSION) command in the directory itself or
one of its ancestors.
has_install_rule: bool
True when the directory or one of its subdirectories contains any install() rules, i.e. whether a make install or equivalent rule is available.
json_file: PathBuf
Path relative to the codemodel file to another JSON file containing a “codemodel” version 2 “directory” object.
Trait Implementations§
source§impl Clone for DirectoryReference
impl Clone for DirectoryReference
source§fn clone(&self) -> DirectoryReference
fn clone(&self) -> DirectoryReference
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DirectoryReference
impl Debug for DirectoryReference
source§impl Default for DirectoryReference
impl Default for DirectoryReference
source§fn default() -> DirectoryReference
fn default() -> DirectoryReference
source§impl<'de> Deserialize<'de> for DirectoryReference
impl<'de> Deserialize<'de> for DirectoryReference
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>,
source§impl PartialEq for DirectoryReference
impl PartialEq for DirectoryReference
source§impl Serialize for DirectoryReference
impl Serialize for DirectoryReference
impl StructuralPartialEq for DirectoryReference
Auto Trait Implementations§
impl Freeze for DirectoryReference
impl RefUnwindSafe for DirectoryReference
impl Send for DirectoryReference
impl Sync for DirectoryReference
impl Unpin for DirectoryReference
impl UnwindSafe for DirectoryReference
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)