pub struct FeatureMetadata {
pub description: Option<String>,
pub category: Option<String>,
pub since: Option<String>,
pub docs: Option<String>,
pub tracking_issue: Option<String>,
pub requires: Vec<String>,
pub public: bool,
pub unstable: bool,
pub deprecated: bool,
pub allow_default: bool,
pub note: Option<String>,
}Expand description
Additional author-provided metadata for a feature.
Fields§
§description: Option<String>Description shown in generated docs.
category: Option<String>Optional family label such as runtime, tls, or serialization.
since: Option<String>Version or release label where the feature became available.
docs: Option<String>URL for feature-specific documentation.
tracking_issue: Option<String>URL for an issue tracking unstable or planned work.
requires: Vec<String>Prerequisite labels or related feature names.
public: boolWhether the feature should appear in public generated output.
unstable: boolWhether the feature is experimental.
deprecated: boolWhether the feature is deprecated.
allow_default: boolAcknowledges intentional default enablement of private/deprecated/unstable features.
note: Option<String>Extra context appended to Markdown and explain output.
Implementations§
Source§impl FeatureMetadata
impl FeatureMetadata
Sourcepub fn status_labels(&self) -> Vec<&'static str>
pub fn status_labels(&self) -> Vec<&'static str>
Returns a human-readable list of status labels for display output.
Trait Implementations§
Source§impl Clone for FeatureMetadata
impl Clone for FeatureMetadata
Source§fn clone(&self) -> FeatureMetadata
fn clone(&self) -> FeatureMetadata
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 FeatureMetadata
impl Debug for FeatureMetadata
Source§impl Default for FeatureMetadata
impl Default for FeatureMetadata
Source§impl<'de> Deserialize<'de> for FeatureMetadata
impl<'de> Deserialize<'de> for FeatureMetadata
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 FeatureMetadata
impl PartialEq for FeatureMetadata
Source§fn eq(&self, other: &FeatureMetadata) -> bool
fn eq(&self, other: &FeatureMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FeatureMetadata
impl Serialize for FeatureMetadata
impl Eq for FeatureMetadata
impl StructuralPartialEq for FeatureMetadata
Auto Trait Implementations§
impl Freeze for FeatureMetadata
impl RefUnwindSafe for FeatureMetadata
impl Send for FeatureMetadata
impl Sync for FeatureMetadata
impl Unpin for FeatureMetadata
impl UnsafeUnpin for FeatureMetadata
impl UnwindSafe for FeatureMetadata
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.