Struct cmake_file_api::objects::codemodel_v2::codemodel::TargetReference
source · #[non_exhaustive]pub struct TargetReference {
pub name: String,
pub id: String,
pub directory_index: usize,
pub project_index: usize,
pub json_file: PathBuf,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
A string specifying the target name.
id: String
A string uniquely identifying the target. This matches the id field in the file referenced by jsonFile.
directory_index: usize
An unsigned integer 0-based index into the main directories array indicating the build system directory in which the target is defined.
project_index: usize
An unsigned integer 0-based index into the main projects array indicating the build system project in which the target is defined.
json_file: PathBuf
Path relative to the codemodel file to another JSON file containing a “codemodel” version 2 “target” object.
Trait Implementations§
source§impl Clone for TargetReference
impl Clone for TargetReference
source§fn clone(&self) -> TargetReference
fn clone(&self) -> TargetReference
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TargetReference
impl Debug for TargetReference
source§impl Default for TargetReference
impl Default for TargetReference
source§fn default() -> TargetReference
fn default() -> TargetReference
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TargetReference
impl<'de> Deserialize<'de> for TargetReference
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TargetReference
impl PartialEq for TargetReference
source§impl Serialize for TargetReference
impl Serialize for TargetReference
impl StructuralPartialEq for TargetReference
Auto Trait Implementations§
impl Freeze for TargetReference
impl RefUnwindSafe for TargetReference
impl Send for TargetReference
impl Sync for TargetReference
impl Unpin for TargetReference
impl UnwindSafe for TargetReference
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)