pub struct Target {
pub product_type: ProductType,
pub platform: HashSet<Platform>,
pub deployment_targets: HashMap<Platform, String>,
pub sources: Vec<TargetSource>,
pub settings: HashMap<String, String>,
pub dependencies: Vec<Dependency>,
}Expand description
Represents a target that is built within a project.
Fields§
§product_type: ProductTypeProduct type of the target.
platform: HashSet<Platform>Platform of the target.
deployment_targets: HashMap<Platform, String>The deployment target (e.g. 9.2). If this is not specified the value
from the project set in Options.deploymentTarget.PLATFORM will be used.
sources: Vec<TargetSource>Source directories of the target.
settings: HashMap<String, String>Target specific build settings. Default platform and product type settings will be applied first before any custom settings defined here. Other context dependant settings will be set automatically as well.
dependencies: Vec<Dependency>Dependencies for the target.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Target
impl<'de> Deserialize<'de> for Target
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
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.