pub struct NativeProject {
pub platform: &'static str,
pub language: &'static str,
pub name: String,
pub manifests: Vec<PathBuf>,
/* private fields */
}Expand description
A non-JavaScript project found in a directory.
Fields§
§platform: &'static strRegistry platform: python, ios-native, android-native or java.
language: &'static strHuman name of the toolchain, for messages (Python, Swift, …).
name: StringProject name from the manifest, else the folder name.
manifests: Vec<PathBuf>Manifest files that were read, relative to the project directory.
Implementations§
Source§impl NativeProject
impl NativeProject
Sourcepub fn installed_packages(&self, registry: &Registry) -> Vec<String>
pub fn installed_packages(&self, registry: &Registry) -> Vec<String>
Registry packages for this platform that the manifests mention.
Sourcepub fn sdk_package<'r>(
&self,
registry: &'r Registry,
) -> Option<&'r PackageManifest>
pub fn sdk_package<'r>( &self, registry: &'r Registry, ) -> Option<&'r PackageManifest>
The SDK package a project on this platform starts with.
Sourcepub fn install_hint(&self, package: &PackageManifest) -> String
pub fn install_hint(&self, package: &PackageManifest) -> String
How to add the SDK package to this project.
Trait Implementations§
Source§impl Clone for NativeProject
impl Clone for NativeProject
Source§impl Debug for NativeProject
impl Debug for NativeProject
impl Eq for NativeProject
Source§impl PartialEq for NativeProject
impl PartialEq for NativeProject
impl StructuralPartialEq for NativeProject
Auto Trait Implementations§
impl Forget for NativeProject
impl Freeze for NativeProject
impl Move for NativeProject
impl RefUnwindSafe for NativeProject
impl Send for NativeProject
impl Sync for NativeProject
impl Unpin for NativeProject
impl UnsafeUnpin for NativeProject
impl UnwindSafe for NativeProject
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.