pub struct ContextConfig {
pub budget: Option<String>,
pub strategy: Option<String>,
pub rank_by: Option<String>,
pub output: Option<String>,
pub compress: Option<bool>,
}Expand description
Context command settings.
Fields§
§budget: Option<String>Token budget with optional k/m suffix.
strategy: Option<String>Packing strategy: “greedy” or “spread”.
rank_by: Option<String>Ranking metric: “code”, “tokens”, “churn”, “hotspot”.
output: Option<String>Output mode: “list”, “bundle”, “json”.
compress: Option<bool>Strip blank lines from bundle output.
Trait Implementations§
Source§impl Clone for ContextConfig
impl Clone for ContextConfig
Source§fn clone(&self) -> ContextConfig
fn clone(&self) -> ContextConfig
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 ContextConfig
impl Debug for ContextConfig
Source§impl Default for ContextConfig
impl Default for ContextConfig
Source§fn default() -> ContextConfig
fn default() -> ContextConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextConfigwhere
ContextConfig: Default,
impl<'de> Deserialize<'de> for ContextConfigwhere
ContextConfig: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ContextConfig
impl Serialize for ContextConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ContextConfig
impl RefUnwindSafe for ContextConfig
impl Send for ContextConfig
impl Sync for ContextConfig
impl Unpin for ContextConfig
impl UnsafeUnpin for ContextConfig
impl UnwindSafe for ContextConfig
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