pub struct RoutingHintsConfig {
pub enabled: bool,
pub strip_hints: bool,
}Expand description
SQL-comment routing-hint configuration.
Always present on ProxyConfig so configs round-trip on any build, but the
hints are only parsed and honored when the routing-hints feature is
compiled in AND enabled = true.
Fields§
§enabled: boolParse and honor /*helios:...*/ routing hints. Default false
(preserves the pure verb-based routing behaviour).
strip_hints: boolStrip the hint comment from the SQL before forwarding to the backend.
Default true. Hint comments are valid SQL comments, so leaving them
in is harmless; stripping keeps backend query logs clean.
Trait Implementations§
Source§impl Clone for RoutingHintsConfig
impl Clone for RoutingHintsConfig
Source§fn clone(&self) -> RoutingHintsConfig
fn clone(&self) -> RoutingHintsConfig
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 moreSource§impl Debug for RoutingHintsConfig
impl Debug for RoutingHintsConfig
Source§impl Default for RoutingHintsConfig
impl Default for RoutingHintsConfig
Source§impl<'de> Deserialize<'de> for RoutingHintsConfigwhere
RoutingHintsConfig: Default,
impl<'de> Deserialize<'de> for RoutingHintsConfigwhere
RoutingHintsConfig: Default,
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
Auto Trait Implementations§
impl Freeze for RoutingHintsConfig
impl RefUnwindSafe for RoutingHintsConfig
impl Send for RoutingHintsConfig
impl Sync for RoutingHintsConfig
impl Unpin for RoutingHintsConfig
impl UnsafeUnpin for RoutingHintsConfig
impl UnwindSafe for RoutingHintsConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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