pub struct CodexFeature {
pub name: String,
pub stage: Option<CodexFeatureStage>,
pub enabled: bool,
pub extra: BTreeMap<String, Value>,
}Expand description
Single feature entry reported by codex features list.
Fields§
§name: StringFeature name as reported by the CLI.
stage: Option<CodexFeatureStage>Feature stage (experimental/beta/stable/deprecated/removed) when provided.
enabled: boolWhether the feature is enabled for the current config/profile.
extra: BTreeMap<String, Value>Unrecognized fields from JSON output are preserved here.
Implementations§
Source§impl CodexFeature
impl CodexFeature
Sourcepub const fn is_enabled(&self) -> bool
pub const fn is_enabled(&self) -> bool
Convenience helper mirroring the enabled flag.
Trait Implementations§
Source§impl Clone for CodexFeature
impl Clone for CodexFeature
Source§fn clone(&self) -> CodexFeature
fn clone(&self) -> CodexFeature
Returns a duplicate 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 CodexFeature
impl Debug for CodexFeature
Source§impl<'de> Deserialize<'de> for CodexFeature
impl<'de> Deserialize<'de> for CodexFeature
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 CodexFeature
impl PartialEq for CodexFeature
Source§impl Serialize for CodexFeature
impl Serialize for CodexFeature
impl Eq for CodexFeature
impl StructuralPartialEq for CodexFeature
Auto Trait Implementations§
impl Freeze for CodexFeature
impl RefUnwindSafe for CodexFeature
impl Send for CodexFeature
impl Sync for CodexFeature
impl Unpin for CodexFeature
impl UnsafeUnpin for CodexFeature
impl UnwindSafe for CodexFeature
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.