pub struct LlmCompile {
pub minify_code_blocks: bool,
pub minify_languages: Vec<String>,
pub preserve_code_fences: bool,
}Fields§
§minify_code_blocks: boolMaster switch. When false, code blocks are emitted verbatim regardless
of language tag or @minify attribute.
minify_languages: Vec<String>Allowlist of language tags eligible for minification. Tags are matched case-insensitively. Defaults to the v0.2 set.
preserve_code_fences: boolWhether to keep the surrounding ```lang fence around minified code. True (default) preserves the structural cue for the consumer LLM.
Trait Implementations§
Source§impl Clone for LlmCompile
impl Clone for LlmCompile
Source§fn clone(&self) -> LlmCompile
fn clone(&self) -> LlmCompile
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 moreSource§impl Debug for LlmCompile
impl Debug for LlmCompile
Source§impl Default for LlmCompile
impl Default for LlmCompile
Source§impl<'de> Deserialize<'de> for LlmCompile
impl<'de> Deserialize<'de> for LlmCompile
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 LlmCompile
impl PartialEq for LlmCompile
Source§fn eq(&self, other: &LlmCompile) -> bool
fn eq(&self, other: &LlmCompile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LlmCompile
impl StructuralPartialEq for LlmCompile
Auto Trait Implementations§
impl Freeze for LlmCompile
impl RefUnwindSafe for LlmCompile
impl Send for LlmCompile
impl Sync for LlmCompile
impl Unpin for LlmCompile
impl UnsafeUnpin for LlmCompile
impl UnwindSafe for LlmCompile
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.