pub enum CodexCompactionStrategy {
Auto,
Local,
RemoteV1,
RemoteV2,
}Variants§
Auto
Keep the preset-derived behavior and do not rewrite Codex’s existing
remote_compaction_v2 feature flag.
Local
Force Codex to see a helper-shaped provider so the client chooses local compaction.
RemoteV1
Force remote compaction v1 through /responses/compact.
RemoteV2
Force remote compaction v2 through /responses with compaction_trigger.
Implementations§
Source§impl CodexCompactionStrategy
impl CodexCompactionStrategy
pub fn as_str(self) -> &'static str
pub fn is_auto(&self) -> bool
pub fn provider_identity_for_mode( self, mode: CodexPatchMode, ) -> CodexPatchProviderIdentity
pub fn remote_compaction_v2_feature_patch(self) -> CodexFeatureBoolPatch
Trait Implementations§
Source§impl Clone for CodexCompactionStrategy
impl Clone for CodexCompactionStrategy
Source§fn clone(&self) -> CodexCompactionStrategy
fn clone(&self) -> CodexCompactionStrategy
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 moreimpl Copy for CodexCompactionStrategy
Source§impl Debug for CodexCompactionStrategy
impl Debug for CodexCompactionStrategy
Source§impl Default for CodexCompactionStrategy
impl Default for CodexCompactionStrategy
Source§fn default() -> CodexCompactionStrategy
fn default() -> CodexCompactionStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodexCompactionStrategy
impl<'de> Deserialize<'de> for CodexCompactionStrategy
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 Display for CodexCompactionStrategy
impl Display for CodexCompactionStrategy
impl Eq for CodexCompactionStrategy
Source§impl PartialEq for CodexCompactionStrategy
impl PartialEq for CodexCompactionStrategy
Source§impl Serialize for CodexCompactionStrategy
impl Serialize for CodexCompactionStrategy
impl StructuralPartialEq for CodexCompactionStrategy
Auto Trait Implementations§
impl Freeze for CodexCompactionStrategy
impl RefUnwindSafe for CodexCompactionStrategy
impl Send for CodexCompactionStrategy
impl Sync for CodexCompactionStrategy
impl Unpin for CodexCompactionStrategy
impl UnsafeUnpin for CodexCompactionStrategy
impl UnwindSafe for CodexCompactionStrategy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.