pub struct CompressionInput {
pub format: InputFormat,
pub bytes: Vec<u8>,
}Fields§
§format: InputFormat§bytes: Vec<u8>Implementations§
Source§impl CompressionInput
impl CompressionInput
pub fn openai_json(bytes: impl Into<Vec<u8>>) -> Self
pub fn anthropic_json(bytes: impl Into<Vec<u8>>) -> Self
Sourcepub fn json(bytes: impl Into<Vec<u8>>) -> Self
pub fn json(bytes: impl Into<Vec<u8>>) -> Self
Generic JSON data (not an LLM message payload). Enables json_minify,
json_field_fold, and json_value_dict.
pub fn plain_text(bytes: impl Into<Vec<u8>>) -> Self
pub fn command_output(bytes: impl Into<Vec<u8>>) -> Self
pub fn git_diff(bytes: impl Into<Vec<u8>>) -> Self
Trait Implementations§
Source§impl Clone for CompressionInput
impl Clone for CompressionInput
Source§fn clone(&self) -> CompressionInput
fn clone(&self) -> CompressionInput
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 CompressionInput
impl Debug for CompressionInput
Source§impl<'de> Deserialize<'de> for CompressionInput
impl<'de> Deserialize<'de> for CompressionInput
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 CompressionInput
Source§impl PartialEq for CompressionInput
impl PartialEq for CompressionInput
Source§impl Serialize for CompressionInput
impl Serialize for CompressionInput
impl StructuralPartialEq for CompressionInput
Auto Trait Implementations§
impl Freeze for CompressionInput
impl RefUnwindSafe for CompressionInput
impl Send for CompressionInput
impl Sync for CompressionInput
impl Unpin for CompressionInput
impl UnsafeUnpin for CompressionInput
impl UnwindSafe for CompressionInput
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,
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.