pub struct DosageConfig {
pub max_tokens_per_scope: i32,
pub max_artifacts_per_scope: i32,
pub max_notes_per_trajectory: i32,
}Expand description
Configuration for dosage limits (harm reduction).
Fields§
§max_tokens_per_scope: i32Maximum tokens per scope
max_artifacts_per_scope: i32Maximum artifacts per scope
max_notes_per_trajectory: i32Maximum notes per trajectory
Trait Implementations§
Source§impl Clone for DosageConfig
impl Clone for DosageConfig
Source§fn clone(&self) -> DosageConfig
fn clone(&self) -> DosageConfig
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 DosageConfig
impl Debug for DosageConfig
Source§impl<'de> Deserialize<'de> for DosageConfig
impl<'de> Deserialize<'de> for DosageConfig
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 DosageConfig
impl PartialEq for DosageConfig
Source§impl Serialize for DosageConfig
impl Serialize for DosageConfig
impl StructuralPartialEq for DosageConfig
Auto Trait Implementations§
impl Freeze for DosageConfig
impl RefUnwindSafe for DosageConfig
impl Send for DosageConfig
impl Sync for DosageConfig
impl Unpin for DosageConfig
impl UnwindSafe for DosageConfig
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