pub struct FeaturesListRequest {
pub json: bool,
pub overrides: CliOverridesPatch,
}Expand description
Request for codex features list.
Fields§
§json: boolRequest JSON output via --json (falls back to text parsing when JSON is absent).
overrides: CliOverridesPatchPer-call CLI overrides layered on top of the builder.
Implementations§
Source§impl FeaturesListRequest
impl FeaturesListRequest
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a request with JSON disabled by default for compatibility with older binaries.
Sourcepub fn json(self, enable: bool) -> Self
pub fn json(self, enable: bool) -> Self
Controls whether --json is passed to codex features list.
Sourcepub fn with_overrides(self, overrides: CliOverridesPatch) -> Self
pub fn with_overrides(self, overrides: CliOverridesPatch) -> Self
Replaces the default CLI overrides for this request.
Sourcepub fn config_override(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn config_override( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Adds a --config key=value override for this request.
Sourcepub fn config_override_raw(self, raw: impl Into<String>) -> Self
pub fn config_override_raw(self, raw: impl Into<String>) -> Self
Adds a raw --config key=value override without validation.
Sourcepub fn profile(self, profile: impl Into<String>) -> Self
pub fn profile(self, profile: impl Into<String>) -> Self
Sets the config profile (--profile) for this request.
Sourcepub fn enable_feature(self, name: impl Into<String>) -> Self
pub fn enable_feature(self, name: impl Into<String>) -> Self
Adds a --enable <feature> toggle for this call.
Sourcepub fn disable_feature(self, name: impl Into<String>) -> Self
pub fn disable_feature(self, name: impl Into<String>) -> Self
Adds a --disable <feature> toggle for this call.
Trait Implementations§
Source§impl Clone for FeaturesListRequest
impl Clone for FeaturesListRequest
Source§fn clone(&self) -> FeaturesListRequest
fn clone(&self) -> FeaturesListRequest
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 FeaturesListRequest
impl Debug for FeaturesListRequest
Source§impl Default for FeaturesListRequest
impl Default for FeaturesListRequest
Source§impl PartialEq for FeaturesListRequest
impl PartialEq for FeaturesListRequest
impl Eq for FeaturesListRequest
impl StructuralPartialEq for FeaturesListRequest
Auto Trait Implementations§
impl Freeze for FeaturesListRequest
impl RefUnwindSafe for FeaturesListRequest
impl Send for FeaturesListRequest
impl Sync for FeaturesListRequest
impl Unpin for FeaturesListRequest
impl UnsafeUnpin for FeaturesListRequest
impl UnwindSafe for FeaturesListRequest
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.