pub struct V2Section {
pub enabled: bool,
pub schema_authority_file: String,
pub authority_mode: V2AuthorityMode,
pub query_limits: BTreeMap<String, u64>,
pub answer_limits: BTreeMap<String, u64>,
pub allow_unauthenticated_staged_writes: bool,
}Expand description
Optional versioned V2 query surface served beside the V1 routes.
Requires a binary built with --features v2-query; enabling it on a
build without the feature aborts startup instead of silently serving
404s.
Fields§
§enabled: boolServe /v2/query and /v2/capabilities.
Path to the source-free authority emitted by schema generate.
Exact authority contract; defaults to managed.
query_limits: BTreeMap<String, u64>Query limits this executor advertises and enforces, by stable limit name. A limit left out keeps its canonical default.
answer_limits: BTreeMap<String, u64>Answer ceilings this executor advertises and enforces, by stable name: how much one query may return. A dimension left out keeps its default.
allow_unauthenticated_staged_writes: boolAdmit staged /v3/staged write transactions without an interceptor
vouching for the caller. Defaults to false: writes need an
authenticating policy.
Implementations§
Source§impl V2Section
impl V2Section
Sourcepub fn resolved_answer_limits(
&self,
) -> Result<QueryExecutionResourceLimits, String>
pub fn resolved_answer_limits( &self, ) -> Result<QueryExecutionResourceLimits, String>
Resolve the configured answer ceilings, refusing unknown names and values past a dimension’s supported maximum. An unnamed dimension keeps the proxy (wire) default, so an unconfigured server advertises no answer limit.
Sourcepub fn resolved_query_limits(&self) -> Result<QueryLimits, String>
pub fn resolved_query_limits(&self) -> Result<QueryLimits, String>
Resolve the configured query limits, refusing unknown names and values the implementation does not support.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for V2Section
impl<'de> Deserialize<'de> for V2Section
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>,
Auto Trait Implementations§
impl Freeze for V2Section
impl RefUnwindSafe for V2Section
impl Send for V2Section
impl Sync for V2Section
impl Unpin for V2Section
impl UnsafeUnpin for V2Section
impl UnwindSafe for V2Section
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request