pub struct ExportSection {
pub spec: String,
pub package_name: Option<String>,
pub version: Option<String>,
pub android_package: Option<String>,
pub ios_module_name: Option<String>,
}Expand description
Validated [export] section of nativeview.toml.
Fields§
§spec: StringPath (relative to the crate directory) to the Rust file carrying #[nativeview_hybrid_spec] +
#[nv_hybrid_view] (default: "src/spec.rs").
package_name: Option<String>Optional npm package name (defaults to sanitized lowercase kebab of the Cargo package name).
version: Option<String>Optional package version override (defaults to Cargo.toml package.version).
android_package: Option<String>Optional Android Java/Kotlin package override (defaults to HybridFileSpec::android_package()).
ios_module_name: Option<String>Optional Swift / CocoaPods module name (defaults to Nv<PrimaryView> / PascalCase crate).
Trait Implementations§
Source§impl Clone for ExportSection
impl Clone for ExportSection
Source§impl Debug for ExportSection
impl Debug for ExportSection
Source§impl Default for ExportSection
impl Default for ExportSection
impl Eq for ExportSection
Source§impl PartialEq for ExportSection
impl PartialEq for ExportSection
impl StructuralPartialEq for ExportSection
Auto Trait Implementations§
impl Forget for ExportSection
impl Freeze for ExportSection
impl Move for ExportSection
impl RefUnwindSafe for ExportSection
impl Send for ExportSectionwhere
RawVecInner: Send,
impl Sync for ExportSectionwhere
RawVecInner: Sync,
impl Unpin for ExportSection
impl UnsafeUnpin for ExportSection
impl UnwindSafe for ExportSectionwhere
RawVecInner: UnwindSafe,
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§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.