pub struct MetaModuleManifest {
pub module: ModuleInfo,
}Expand description
Top-level meta.module.* structure. Everything lives under the [module]
table, so the manifest reads as [module] + [[module.plugins]] +
[[module.skills]].
Fields§
§module: ModuleInfoModule metadata and contributions.
Implementations§
Source§impl MetaModuleManifest
impl MetaModuleManifest
Sourcepub fn from_file_auto(path: &Path) -> Result<Self>
pub fn from_file_auto(path: &Path) -> Result<Self>
Load a manifest, choosing the parser by file extension
(.toml, .yaml/.yml, .json). Defaults to TOML for unknown
extensions. Validates before returning.
Sourcepub fn find_in_dir(dir: &Path) -> Option<PathBuf>
pub fn find_in_dir(dir: &Path) -> Option<PathBuf>
Find a meta.module.* file directly inside dir, if one exists.
Sourcepub fn is_manifest_path(path: &Path) -> bool
pub fn is_manifest_path(path: &Path) -> bool
Whether a path is a recognized module-manifest filename.
Trait Implementations§
Source§impl Clone for MetaModuleManifest
impl Clone for MetaModuleManifest
Source§fn clone(&self) -> MetaModuleManifest
fn clone(&self) -> MetaModuleManifest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetaModuleManifest
impl Debug for MetaModuleManifest
Source§impl<'de> Deserialize<'de> for MetaModuleManifest
impl<'de> Deserialize<'de> for MetaModuleManifest
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
Auto Trait Implementations§
impl Freeze for MetaModuleManifest
impl RefUnwindSafe for MetaModuleManifest
impl Send for MetaModuleManifest
impl Sync for MetaModuleManifest
impl Unpin for MetaModuleManifest
impl UnsafeUnpin for MetaModuleManifest
impl UnwindSafe for MetaModuleManifest
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more