pub struct QueryLimits {
pub max_input_bytes: usize,
pub max_mir_nodes: usize,
}Expand description
Resource bounds applied to inbound SQL, surfaced to the gRPC layer so it can refuse oversized queries before parsing.
Fields§
§max_input_bytes: usizeMaximum byte length of the SQL input.
max_mir_nodes: usizeMaximum node count in the lowered MIR.
Implementations§
Source§impl QueryLimits
impl QueryLimits
Trait Implementations§
Source§impl Clone for QueryLimits
impl Clone for QueryLimits
Source§fn clone(&self) -> QueryLimits
fn clone(&self) -> QueryLimits
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 moreimpl Copy for QueryLimits
Source§impl Debug for QueryLimits
impl Debug for QueryLimits
Auto Trait Implementations§
impl Freeze for QueryLimits
impl RefUnwindSafe for QueryLimits
impl Send for QueryLimits
impl Sync for QueryLimits
impl Unpin for QueryLimits
impl UnsafeUnpin for QueryLimits
impl UnwindSafe for QueryLimits
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