pub struct PackProfile {
pub preset: Option<Preset>,
pub max_tokens: Option<usize>,
pub reserve_tokens: Option<usize>,
pub budget_strategy: Option<BudgetStrategy>,
pub tokenizer: Option<String>,
pub hf_llama3_vocab: Option<PathBuf>,
pub format: Option<Format>,
pub expand_macros: Option<ExpandMode>,
pub diff: Option<String>,
pub include_paths: Vec<String>,
pub exclude_paths: Vec<String>,
}Fields§
§preset: Option<Preset>§max_tokens: Option<usize>§reserve_tokens: Option<usize>§budget_strategy: Option<BudgetStrategy>§tokenizer: Option<String>§hf_llama3_vocab: Option<PathBuf>§format: Option<Format>§expand_macros: Option<ExpandMode>§diff: Option<String>§include_paths: Vec<String>§exclude_paths: Vec<String>Implementations§
Source§impl PackProfile
impl PackProfile
pub fn apply_to(&self, options: &mut PackOptions) -> Result<()>
Trait Implementations§
Source§impl Clone for PackProfile
impl Clone for PackProfile
Source§fn clone(&self) -> PackProfile
fn clone(&self) -> PackProfile
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 PackProfile
impl Debug for PackProfile
Source§impl Default for PackProfile
impl Default for PackProfile
Source§fn default() -> PackProfile
fn default() -> PackProfile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackProfile
impl<'de> Deserialize<'de> for PackProfile
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
Auto Trait Implementations§
impl Freeze for PackProfile
impl RefUnwindSafe for PackProfile
impl Send for PackProfile
impl Sync for PackProfile
impl Unpin for PackProfile
impl UnsafeUnpin for PackProfile
impl UnwindSafe for PackProfile
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more