pub struct ModuleLayout {
pub cap_dir: String,
pub stem: String,
pub swift_target: Option<String>,
pub java_package: Option<String>,
pub has_direct_spec: bool,
}Expand description
Discovered leaf layout of any capability module under packages/modules/<cap>, whether backed
by a Direct-FFI src/spec.rs or a table/policy-only [package.metadata.nativeview] manifest.
Fields§
§cap_dir: StringModule directory name (image, secure-store).
stem: StringC/C++ include stem (image, secure_store).
swift_target: Option<String>Optional [package.metadata.nativeview] swift_target / swift_tables_target.
java_package: Option<String>Optional [package.metadata.nativeview] java_package (e.g. io.github.nativeview.modules.image).
has_direct_spec: booltrue for Direct-FFI modules (web/ts), false for table/policy-only modules (ts).
Implementations§
Source§impl ModuleLayout
impl ModuleLayout
Sourcepub fn leaf_dir(&self, leaf: ModuleLeaf) -> Result<String, CodegenError>
pub fn leaf_dir(&self, leaf: ModuleLeaf) -> Result<String, CodegenError>
packages/modules/<cap>/<leaf dir>, failing clearly if AppleSources or JavaGenerated
is requested for a module without the required [package.metadata.nativeview] metadata.
Trait Implementations§
Source§impl Clone for ModuleLayout
impl Clone for ModuleLayout
Source§impl Debug for ModuleLayout
impl Debug for ModuleLayout
impl Eq for ModuleLayout
Source§impl PartialEq for ModuleLayout
impl PartialEq for ModuleLayout
impl StructuralPartialEq for ModuleLayout
Auto Trait Implementations§
impl Forget for ModuleLayout
impl Freeze for ModuleLayout
impl Move for ModuleLayout
impl RefUnwindSafe for ModuleLayout
impl Send for ModuleLayoutwhere
RawVecInner: Send,
impl Sync for ModuleLayoutwhere
RawVecInner: Sync,
impl Unpin for ModuleLayout
impl UnsafeUnpin for ModuleLayout
impl UnwindSafe for ModuleLayoutwhere
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