Struct cmake_file_api::objects::codemodel_v2::codemodel::Configuration
source · #[non_exhaustive]pub struct Configuration {
pub name: String,
pub projects: Vec<Project>,
pub directory_refs: Vec<DirectoryReference>,
pub target_refs: Vec<TargetReference>,
pub directories: Vec<Directory>,
pub targets: Vec<Target>,
}
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 of the configuration, e.g. Debug.
projects: Vec<Project>
Top-level project and subprojects defined in the build system. Each (sub-)project corresponds to a source directory whose CMakeLists.txt file calls the project() command with a project name different from its parent directory. The first entry corresponds to the top-level project.
directory_refs: Vec<DirectoryReference>
Build system directory info whose source directory contains a CMakeLists.txt file. The first entry corresponds to the top-level directory
target_refs: Vec<TargetReference>
Build system targets. Such targets are created by calls to add_executable(), add_library(), and add_custom_target(), excluding imported targets and interface libraries (which do not generate any build rules).
directories: Vec<Directory>
The following members are not part of the JSON file. They are used to store the actual objects that the references point to. Directory objects. The position in the vector corresponds to the index in the directory_refs vector.
targets: Vec<Target>
Target objects. The position in the vector corresponds to the index in the target_refs vector.
Trait Implementations§
source§impl Clone for Configuration
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Configuration
impl Debug for Configuration
source§impl Default for Configuration
impl Default for Configuration
source§fn default() -> Configuration
fn default() -> Configuration
source§impl<'de> Deserialize<'de> for Configuration
impl<'de> Deserialize<'de> for Configuration
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 Configuration
impl PartialEq for Configuration
source§impl Serialize for Configuration
impl Serialize for Configuration
impl StructuralPartialEq for Configuration
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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
)