pub struct StopPolicy {
pub maximum_output_tokens: u32,
pub token_ids: BTreeSet<u32>,
pub strings: Vec<String>,
pub collision_policy: StopTokenCollisionPolicy,
}Fields§
§maximum_output_tokens: u32§token_ids: BTreeSet<u32>§strings: Vec<String>§collision_policy: StopTokenCollisionPolicyTrait Implementations§
Source§impl Clone for StopPolicy
impl Clone for StopPolicy
Source§fn clone(&self) -> StopPolicy
fn clone(&self) -> StopPolicy
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 StopPolicy
impl Debug for StopPolicy
Source§impl<'de> Deserialize<'de> for StopPolicy
impl<'de> Deserialize<'de> for StopPolicy
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 StopPolicy
Source§impl PartialEq for StopPolicy
impl PartialEq for StopPolicy
Source§impl Serialize for StopPolicy
impl Serialize for StopPolicy
impl StructuralPartialEq for StopPolicy
Auto Trait Implementations§
impl Freeze for StopPolicy
impl RefUnwindSafe for StopPolicy
impl Send for StopPolicy
impl Sync for StopPolicy
impl Unpin for StopPolicy
impl UnsafeUnpin for StopPolicy
impl UnwindSafe for StopPolicy
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