#[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 more