Struct Metadata

Source
pub struct Metadata {
Show 15 fields pub supported: bool, pub no_default_features: bool, pub cargo_args: Option<Vec<String>>, pub features: Option<Vec<String>>, pub app_sources: Option<Vec<String>>, pub app_plugins: Option<Vec<String>>, pub project_dependencies: Option<Vec<String>>, pub app_dependencies: Option<Vec<String>>, pub app_dependencies_platform: Option<Vec<String>>, pub asset_packs: Option<Vec<AssetPackInfo>>, pub app_activity_name: Option<String>, pub app_permissions: Option<Vec<String>>, pub app_theme_parent: Option<String>, pub env_vars: Option<HashMap<String, String>>, pub vulkan_validation: Option<bool>,
}

Fields§

§supported: bool§no_default_features: bool§cargo_args: Option<Vec<String>>§features: Option<Vec<String>>§app_sources: Option<Vec<String>>§app_plugins: Option<Vec<String>>§project_dependencies: Option<Vec<String>>§app_dependencies: Option<Vec<String>>§app_dependencies_platform: Option<Vec<String>>§asset_packs: Option<Vec<AssetPackInfo>>§app_activity_name: Option<String>§app_permissions: Option<Vec<String>>§app_theme_parent: Option<String>§env_vars: Option<HashMap<String, String>>§vulkan_validation: Option<bool>

Implementations§

Source§

impl Metadata

Source

pub const fn supported(&self) -> bool

Source

pub fn no_default_features(&self) -> bool

Source

pub fn cargo_args(&self) -> Option<&[String]>

Source

pub fn features(&self) -> Option<&[String]>

Source

pub fn app_sources(&self) -> &[String]

Source

pub fn app_plugins(&self) -> Option<&[String]>

Source

pub fn project_dependencies(&self) -> Option<&[String]>

Source

pub fn app_dependencies(&self) -> Option<&[String]>

Source

pub fn app_dependencies_platform(&self) -> Option<&[String]>

Source

pub fn asset_packs(&self) -> Option<&[AssetPackInfo]>

Source

pub fn app_activity_name(&self) -> Option<&str>

Source

pub fn app_permissions(&self) -> Option<&[String]>

Source

pub fn app_theme_parent(&self) -> Option<&str>

Source

pub fn vulkan_validation(&self) -> Option<bool>

Trait Implementations§

Source§

impl Debug for Metadata

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Metadata

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Metadata

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,