pub struct ParserSettings {
pub legacy_strands: bool,
pub flexible_record_id: bool,
pub object_recursion_limit: usize,
pub query_recursion_limit: usize,
pub references_enabled: bool,
pub bearer_access_enabled: bool,
pub define_api_enabled: bool,
}Fields§
§legacy_strands: boolParse strand like the old parser where a strand which looks like a UUID, Record-Id, Or a DateTime will be parsed as a date-time.
flexible_record_id: boolSet whether to allow record-id’s which don’t adheare to regular ident rules.
Setting this to true will allow parsing of, for example, foo:0bar. This would be rejected
by normal identifier rules as most identifiers can’t start with a number.
object_recursion_limit: usizeDisallow a query to have objects deeper that limit.
Arrays also count towards objects. So [{foo: [] }] would be 3 deep.
query_recursion_limit: usizeDisallow a query from being deeper than the give limit. A query recurses when a statement contains another statement within itself. Examples are subquery and blocks like block statements and if statements and such.
references_enabled: boolWhether record references are enabled.
bearer_access_enabled: boolWhether bearer access is enabled
define_api_enabled: boolWhether bearer access is enabled
Trait Implementations§
Source§impl Clone for ParserSettings
impl Clone for ParserSettings
Source§fn clone(&self) -> ParserSettings
fn clone(&self) -> ParserSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParserSettings
impl Debug for ParserSettings
Auto Trait Implementations§
impl Freeze for ParserSettings
impl RefUnwindSafe for ParserSettings
impl Send for ParserSettings
impl Sync for ParserSettings
impl Unpin for ParserSettings
impl UnwindSafe for ParserSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more