pub struct GrammarTrigger {
pub trigger_type: GrammarTriggerType,
pub value: String,
pub token: Option<LlamaToken>,
}Expand description
Lazy grammar trigger from chat template generation.
Fields§
§trigger_type: GrammarTriggerTypeTrigger kind.
value: StringTrigger text or pattern.
token: Option<LlamaToken>Token id for token triggers.
Trait Implementations§
Source§impl Clone for GrammarTrigger
impl Clone for GrammarTrigger
Source§fn clone(&self) -> GrammarTrigger
fn clone(&self) -> GrammarTrigger
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 GrammarTrigger
impl Debug for GrammarTrigger
Source§impl PartialEq for GrammarTrigger
impl PartialEq for GrammarTrigger
impl Eq for GrammarTrigger
impl StructuralPartialEq for GrammarTrigger
Auto Trait Implementations§
impl Freeze for GrammarTrigger
impl RefUnwindSafe for GrammarTrigger
impl Send for GrammarTrigger
impl Sync for GrammarTrigger
impl Unpin for GrammarTrigger
impl UnwindSafe for GrammarTrigger
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