#[derive(Clone, Debug)]
pub struct Limits {
pub bytes_per_line: u64,
pub bytes_per_page: u64,
}
impl Limits {
pub const NO_LIMITS: &'static Self = &Self {
bytes_per_line: u64::MAX,
bytes_per_page: u64::MAX,
};
}
impl Default for Limits {
fn default() -> Self {
Self::NO_LIMITS.clone()
}
}