pub struct RecordNames {
pub normalized: Option<String>,
pub bundled: Option<String>,
pub package_listed: bool,
}Expand description
The record names a manifest srcEntry can compile to. Which spelling
a package uses is a build option (normalized OHM URLs); packages built
with it carry a pkgContextInfo.json.
Fields§
§normalized: Option<String>&<packageName>/<source root><path>&<version>, e.g.
&entry/src/main/ets/entryability/EntryAbility&. None when the
manifest names neither a package nor a module.
bundled: Option<String><bundleName>/<moduleName>/<path>, e.g.
com.x.y/entry/ets/entryability/EntryAbility. None when the
manifest lacks the bundle or module name.
package_listed: boolWhether the package table listed the module’s package, which is what makes the normalized spelling the likely one.
Implementations§
Source§impl RecordNames
impl RecordNames
Sourcepub fn candidates(&self) -> Vec<&str>
pub fn candidates(&self) -> Vec<&str>
The spellings, likeliest first.
Trait Implementations§
Source§impl Clone for RecordNames
impl Clone for RecordNames
Source§impl Debug for RecordNames
impl Debug for RecordNames
impl Eq for RecordNames
Source§impl PartialEq for RecordNames
impl PartialEq for RecordNames
impl StructuralPartialEq for RecordNames
Auto Trait Implementations§
impl Forget for RecordNames
impl Freeze for RecordNames
impl Move for RecordNames
impl RefUnwindSafe for RecordNames
impl Send for RecordNames
impl Sync for RecordNames
impl Unpin for RecordNames
impl UnsafeUnpin for RecordNames
impl UnwindSafe for RecordNames
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