pub enum StrategyKind {
NativeMtp {
proposer: Option<String>,
prediction_depth: Option<u32>,
layer_indices: Vec<u32>,
window_policy: Option<WindowPolicy>,
},
NgramCache {
proposer: String,
window_policy: Option<WindowPolicy>,
},
NgramSuffix {
proposer: String,
window_policy: Option<WindowPolicy>,
},
Composite {
primary: String,
extender: String,
extension_policy: ExtensionPolicy,
window_policy: Option<WindowPolicy>,
},
}Variants§
NativeMtp
Native-MTP strategies carry either a proposer reference or the inline
prediction_depth/layer_indices form — never both, never neither.
Fields
§
window_policy: Option<WindowPolicy>NgramCache
NgramSuffix
Composite
Trait Implementations§
Source§impl Clone for StrategyKind
impl Clone for StrategyKind
Source§impl Debug for StrategyKind
impl Debug for StrategyKind
Source§impl<'de> Deserialize<'de> for StrategyKind
impl<'de> Deserialize<'de> for StrategyKind
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
impl Eq for StrategyKind
Source§impl PartialEq for StrategyKind
impl PartialEq for StrategyKind
Source§impl Serialize for StrategyKind
impl Serialize for StrategyKind
impl StructuralPartialEq for StrategyKind
Auto Trait Implementations§
impl Freeze for StrategyKind
impl RefUnwindSafe for StrategyKind
impl Send for StrategyKind
impl Sync for StrategyKind
impl Unpin for StrategyKind
impl UnsafeUnpin for StrategyKind
impl UnwindSafe for StrategyKind
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