pub struct TargetDescriptor {Show 16 fields
pub id: &'static str,
pub ui: &'static str,
pub platforms: &'static [&'static str],
pub version: &'static str,
pub ir_versions: RangeInclusive<u32>,
pub color_source: ColorSource,
pub components: &'static [&'static str],
pub windows: WindowCapabilities,
pub channels: &'static [&'static str],
pub media: Option<MediaSupport>,
pub styles: &'static [StyleSupport],
pub motion: &'static [&'static str],
pub window_chrome: bool,
pub text_marks: bool,
pub dynamic_items: bool,
pub features: &'static [&'static str],
}Fields§
§id: &'static strStable target id, for example swiftui-macos.
ui: &'static strUI technology, for example swiftui.
platforms: &'static [&'static str]§version: &'static str§ir_versions: RangeInclusive<u32>IR versions this target consumes.
color_source: ColorSource§components: &'static [&'static str]Built-in components this target can realize.
windows: WindowCapabilities§channels: &'static [&'static str]Entry channels the target’s host can assemble besides the UI.
media: Option<MediaSupport>Media support for Video and application players, if any.
styles: &'static [StyleSupport]Style overrides the target can show; none by default.
motion: &'static [&'static str]Motion properties the target shows (appear, disappear,
reflow, hero); the others change without motion.
window_chrome: boolWhether windows honor chrome, immersive and idle_after.
text_marks: boolWhether Text(mark:) draws its highlight; otherwise the text shows
plain.
dynamic_items: boolWhether items of Sidebar, Tabs and Toolbar may come and go
with if, if let, match and ForEach.
features: &'static [&'static str]Further parts of the IR the target builds, named in feature;
using one a target does not list fails the build or, where a plain
form is shown instead, warns.