pub struct GeneratedSqlIntrospectionPolicy { /* private fields */ }Expand description
Local/IC policy for generated read-only SQL operational introspection.
Implementations§
Source§impl GeneratedSqlIntrospectionPolicy
impl GeneratedSqlIntrospectionPolicy
Sourcepub const fn new(local: bool, ic: bool) -> Self
pub const fn new(local: bool, ic: bool) -> Self
Build one SQL introspection policy from explicit target booleans.
Sourcepub const fn enabled_for(self, build_target: GeneratedBuildTarget) -> bool
pub const fn enabled_for(self, build_target: GeneratedBuildTarget) -> bool
Return whether this policy admits SQL introspection for one build target.
Trait Implementations§
Source§impl Clone for GeneratedSqlIntrospectionPolicy
impl Clone for GeneratedSqlIntrospectionPolicy
Source§fn clone(&self) -> GeneratedSqlIntrospectionPolicy
fn clone(&self) -> GeneratedSqlIntrospectionPolicy
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 GeneratedSqlIntrospectionPolicy
impl Eq for GeneratedSqlIntrospectionPolicy
Source§impl PartialEq for GeneratedSqlIntrospectionPolicy
impl PartialEq for GeneratedSqlIntrospectionPolicy
Source§fn eq(&self, other: &GeneratedSqlIntrospectionPolicy) -> bool
fn eq(&self, other: &GeneratedSqlIntrospectionPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GeneratedSqlIntrospectionPolicy
Auto Trait Implementations§
impl Freeze for GeneratedSqlIntrospectionPolicy
impl RefUnwindSafe for GeneratedSqlIntrospectionPolicy
impl Send for GeneratedSqlIntrospectionPolicy
impl Sync for GeneratedSqlIntrospectionPolicy
impl Unpin for GeneratedSqlIntrospectionPolicy
impl UnsafeUnpin for GeneratedSqlIntrospectionPolicy
impl UnwindSafe for GeneratedSqlIntrospectionPolicy
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