pub struct EmbeddedSqlOptions {Show 15 fields
pub import_specifier: String,
pub executor_names: Vec<String>,
pub exclude_executor_names: Vec<String>,
pub executor_factory_names: Vec<String>,
pub executor_type_names: Vec<String>,
pub executor_option_properties: Vec<String>,
pub trusted_sql_tags: Vec<TrustedSqlTag>,
pub raw_sql_tags: Vec<TrustedSqlTag>,
pub sql_identifier_assertions: Vec<SqlIdentifierAssertion>,
pub sql_literal_helpers: Vec<String>,
pub track_transaction_helpers: bool,
pub track_share_lock_writes: bool,
pub track_runtime_loop_appends: bool,
pub track_lookup_key_bindings: bool,
pub track_redundant_prelocks: bool,
/* private fields */
}Expand description
Configurable executor import matching. Empty defaults select no executors.
Fields§
§import_specifier: String§executor_names: Vec<String>§exclude_executor_names: Vec<String>§executor_factory_names: Vec<String>Named imports whose call result bound to a local is an executor.
executor_type_names: Vec<String>Imported type names whose annotated parameters are executors.
executor_option_properties: Vec<String>Named imports trusted as parameterized SQL tags. Empty trusts none.
sql_identifier_assertions: Vec<SqlIdentifierAssertion>§sql_literal_helpers: Vec<String>Exact module#export identities of annotation-only literal wrappers.
track_transaction_helpers: bool§track_runtime_loop_appends: bool§track_lookup_key_bindings: bool§track_redundant_prelocks: boolImplementations§
Source§impl EmbeddedSqlOptions
impl EmbeddedSqlOptions
pub fn is_callable_export(&self, name: &str) -> bool
pub fn uses_legacy_executor_defaults(&self) -> bool
pub fn selects_executors(&self) -> bool
Source§impl EmbeddedSqlOptions
impl EmbeddedSqlOptions
Sourcepub fn configured(import_specifier: &str, executor_names: &[String]) -> Self
pub fn configured(import_specifier: &str, executor_names: &[String]) -> Self
A configured module enables standard executor names. Without a module, names must be explicit and may match named imports from any module.
Sourcepub fn with_extra_executor_names(self, extras: Option<&[String]>) -> Self
pub fn with_extra_executor_names(self, extras: Option<&[String]>) -> Self
Extend the standard executor imports while retaining all defaults.
Sourcepub fn with_exclude_executor_names(self, exclusions: &[String]) -> Self
pub fn with_exclude_executor_names(self, exclusions: &[String]) -> Self
Remove intentionally excluded imports after replacement or extension.
Sourcepub fn with_scoped_executors(
self,
factories: &[String],
types: &[String],
) -> Self
pub fn with_scoped_executors( self, factories: &[String], types: &[String], ) -> Self
Add scoped executor sources: factory imports and executor type imports.
pub fn with_transaction_executor_types(self, types: &[String]) -> Self
Sourcepub fn with_executor_option_properties(self, properties: &[String]) -> Self
pub fn with_executor_option_properties(self, properties: &[String]) -> Self
Select transaction executor overrides from explicit options properties.
pub fn with_executor_options(self, options: &[ExecutorOption]) -> Self
Sourcepub fn with_sql_literal_helpers(self, helpers: &[String]) -> Self
pub fn with_sql_literal_helpers(self, helpers: &[String]) -> Self
Configure annotation-only wrappers; argument syntax is checked separately.
pub fn with_sql_identifier_assertions( self, assertions: &[SqlIdentifierAssertion], ) -> Self
pub fn with_exact_constant_origins(self) -> Self
Opt in to parameterized tags. Order does not affect the profile key.
Trait Implementations§
Source§impl Clone for EmbeddedSqlOptions
impl Clone for EmbeddedSqlOptions
Source§impl Debug for EmbeddedSqlOptions
impl Debug for EmbeddedSqlOptions
Source§impl Default for EmbeddedSqlOptions
impl Default for EmbeddedSqlOptions
impl Eq for EmbeddedSqlOptions
Source§impl Hash for EmbeddedSqlOptions
impl Hash for EmbeddedSqlOptions
Source§impl Ord for EmbeddedSqlOptions
impl Ord for EmbeddedSqlOptions
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for EmbeddedSqlOptions
impl PartialEq for EmbeddedSqlOptions
Source§impl PartialOrd for EmbeddedSqlOptions
impl PartialOrd for EmbeddedSqlOptions
Source§impl Serialize for EmbeddedSqlOptions
impl Serialize for EmbeddedSqlOptions
impl StructuralPartialEq for EmbeddedSqlOptions
Auto Trait Implementations§
impl Forget for EmbeddedSqlOptions
impl Freeze for EmbeddedSqlOptionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<TrustedSqlTag>: Freeze,
PhantomData<SqlIdentifierAssertion>: Freeze,
impl Move for EmbeddedSqlOptions
impl RefUnwindSafe for EmbeddedSqlOptions
impl Send for EmbeddedSqlOptionswhere
RawVecInner: Send,
impl Sync for EmbeddedSqlOptionswhere
RawVecInner: Sync,
impl Unpin for EmbeddedSqlOptions
impl UnsafeUnpin for EmbeddedSqlOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<TrustedSqlTag>: UnsafeUnpin,
PhantomData<SqlIdentifierAssertion>: UnsafeUnpin,
impl UnwindSafe for EmbeddedSqlOptionswhere
RawVecInner: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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