Struct cmake_file_api::objects::codemodel_v2::codemodel::Project
source · #[non_exhaustive]pub struct Project {
pub name: String,
pub parent_index: Option<usize>,
pub child_indexes: Vec<usize>,
pub directory_indexes: Vec<usize>,
pub target_indexes: Vec<usize>,
}
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.name: String
A string specifying the name given to the project() command.
parent_index: Option<usize>
Optional member that is present when the project is not top-level. The value is an unsigned integer 0-based index of another entry in the main projects array that corresponds to the parent project that added this project as a subproject.
child_indexes: Vec<usize>
Optional member that is present when the project has subprojects. Entries corresponding to the subprojects. Each entry is an unsigned integer 0-based index of another entry in the main projects array.
directory_indexes: Vec<usize>
Entries corresponding to build system directories that are part of the project. The first entry corresponds to the top-level directory of the project. Each entry is an unsigned integer 0-based index into the main directories array.
target_indexes: Vec<usize>
Optional member that is present when the project itself has targets, excluding those belonging to subprojects. Entries corresponding to the targets. Each entry is an unsigned integer 0-based index into the main targets array.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Project
impl<'de> Deserialize<'de> for Project
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>,
impl StructuralPartialEq for Project
Auto Trait Implementations§
impl Freeze for Project
impl RefUnwindSafe for Project
impl Send for Project
impl Sync for Project
impl Unpin for Project
impl UnwindSafe for Project
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
)