pub struct Metadata<'a> {
pub module_name: &'a str,
pub namespace: &'a str,
pub version: &'a str,
pub java_version: Option<&'a str>,
pub ios_deployment_target: Option<&'a str>,
pub min_sdk: Option<u8>,
pub max_sdk: Option<u8>,
}
Expand description
Representation of the module metadata
Fields§
§module_name: &'a str
The module name.
namespace: &'a str
The module namespace.
version: &'a str
The module version.
java_version: Option<&'a str>
The Java version required by the module (optional).
ios_deployment_target: Option<&'a str>
The minimum iOS deployment target version (optional).
min_sdk: Option<u8>
The minimum Android SDK version (optional).
max_sdk: Option<u8>
The maximum Android SDK version (optional).
Implementations§
Source§impl<'a> Metadata<'a>
impl<'a> Metadata<'a>
Sourcepub fn with_java_version(self, java_version: &'a str) -> Self
pub fn with_java_version(self, java_version: &'a str) -> Self
Sourcepub fn with_ios_deployment_target(self, ios_deployment_target: &'a str) -> Self
pub fn with_ios_deployment_target(self, ios_deployment_target: &'a str) -> Self
Sourcepub fn with_min_sdk(self, min_sdk: u8) -> Self
pub fn with_min_sdk(self, min_sdk: u8) -> Self
Sourcepub fn with_max_sdk(self, max_sdk: u8) -> Self
pub fn with_max_sdk(self, max_sdk: u8) -> Self
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Metadata<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Metadata<'a>
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<'a> PartialOrd for Metadata<'a>
impl<'a> PartialOrd for Metadata<'a>
impl<'a> StructuralPartialEq for Metadata<'a>
Auto Trait Implementations§
impl<'a> Freeze for Metadata<'a>
impl<'a> RefUnwindSafe for Metadata<'a>
impl<'a> Send for Metadata<'a>
impl<'a> Sync for Metadata<'a>
impl<'a> Unpin for Metadata<'a>
impl<'a> UnwindSafe for Metadata<'a>
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