Struct cli::cargo_manifest::Metadata
source · [−]pub struct Metadata {Show 19 fields
pub app_name: Option<String>,
pub version_name: Option<String>,
pub version_code: Option<u32>,
pub min_sdk_version: Option<u32>,
pub target_sdk_version: Option<u32>,
pub max_sdk_version: Option<u32>,
pub icon: Option<String>,
pub use_android_manifest: bool,
pub android_manifest_path: Option<PathBuf>,
pub use_info_plist: bool,
pub info_plist_path: Option<PathBuf>,
pub android_package_name: Option<String>,
pub android_res: Option<PathBuf>,
pub android_assets: Option<PathBuf>,
pub android_build_targets: Option<Vec<AndroidTarget>>,
pub apple_build_targets: Option<Vec<AppleTarget>>,
pub apple_res: Option<PathBuf>,
pub apple_assets: Option<PathBuf>,
pub android_permissions: Vec<UsesPermission>,
}Fields
app_name: Option<String>version_name: Option<String>version_code: Option<u32>min_sdk_version: Option<u32>target_sdk_version: Option<u32>max_sdk_version: Option<u32>icon: Option<String>use_android_manifest: boolandroid_manifest_path: Option<PathBuf>use_info_plist: boolinfo_plist_path: Option<PathBuf>android_package_name: Option<String>Android package name to place in AndroidManifest.xml.
android_res: Option<PathBuf>Android resources directory path relatively to project path.
android_assets: Option<PathBuf>Android assets directory path relatively to project path.
android_build_targets: Option<Vec<AndroidTarget>>Android build targets.
apple_build_targets: Option<Vec<AppleTarget>>Apple build targets.
apple_res: Option<PathBuf>Apple resources directory path relatively to project path.
apple_assets: Option<PathBuf>Apple assets directory path relatively to project path.
android_permissions: Vec<UsesPermission>TODO: Add android android_uses_features.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more