pub struct FeatureManifest { /* private fields */ }
Implementations§
source§impl FeatureManifest
impl FeatureManifest
pub fn validate_manifest(&self) -> Result<()>
pub fn iter_enum_defs(&self) -> impl Iterator<Item = &EnumDef>
pub fn iter_all_enum_defs( &self, ) -> impl Iterator<Item = (&FeatureManifest, &EnumDef)>
pub fn iter_object_defs(&self) -> impl Iterator<Item = &ObjectDef>
pub fn iter_all_object_defs( &self, ) -> impl Iterator<Item = (&FeatureManifest, &ObjectDef)>
pub fn iter_feature_defs(&self) -> impl Iterator<Item = &FeatureDef>
pub fn iter_all_feature_defs( &self, ) -> impl Iterator<Item = (&FeatureManifest, &FeatureDef)>
pub fn find_object(&self, nm: &str) -> Option<&ObjectDef>
pub fn find_enum(&self, nm: &str) -> Option<&EnumDef>
pub fn get_feature(&self, nm: &str) -> Option<&FeatureDef>
pub fn get_coenrolling_feature_ids(&self) -> Vec<String>
pub fn find_feature(&self, nm: &str) -> Option<(&FeatureManifest, &FeatureDef)>
pub fn find_import(&self, id: &ModuleId) -> Option<&FeatureManifest>
pub fn default_json(&self) -> Value
sourcepub fn validate_feature_config(
&self,
feature_name: &str,
feature_value: Value,
) -> Result<FeatureDef>
pub fn validate_feature_config( &self, feature_name: &str, feature_value: Value, ) -> Result<FeatureDef>
This function is used to validate a new value for a feature. It accepts a feature name and a feature value, and returns a Result containing a FeatureDef.
If the value is invalid for the feature, it will return an Err result.
If the value is valid for the feature, it will return an Ok result with a new FeatureDef with the supplied feature value applied to the feature’s property defaults.
Trait Implementations§
source§impl Clone for FeatureManifest
impl Clone for FeatureManifest
source§fn clone(&self) -> FeatureManifest
fn clone(&self) -> FeatureManifest
Returns a copy of the value. Read more
1.0.0 · 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 FeatureManifest
impl Debug for FeatureManifest
source§impl Default for FeatureManifest
impl Default for FeatureManifest
source§fn default() -> FeatureManifest
fn default() -> FeatureManifest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FeatureManifest
impl<'de> Deserialize<'de> for FeatureManifest
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
source§impl PartialEq for FeatureManifest
impl PartialEq for FeatureManifest
source§impl Serialize for FeatureManifest
impl Serialize for FeatureManifest
source§impl TypeFinder for FeatureManifest
impl TypeFinder for FeatureManifest
impl Eq for FeatureManifest
impl StructuralPartialEq for FeatureManifest
Auto Trait Implementations§
impl Freeze for FeatureManifest
impl RefUnwindSafe for FeatureManifest
impl Send for FeatureManifest
impl Sync for FeatureManifest
impl Unpin for FeatureManifest
impl UnwindSafe for FeatureManifest
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more