pub enum ScalarSchemaSafety {
Always,
Never,
DateTimeConditional,
}Expand description
Frozen policy governing use of a scalar function in schema-maintained expressions such as indexes, generated columns, and CHECK constraints.
This metadata belongs to the registry entry, not the open
ScalarFunction trait object. Consequently a user-defined function can
neither re-enter registration nor contradict the explicit deterministic /
non-deterministic API while rows are being evaluated.
Variants§
Always
Every invocation is stable for the lifetime of the schema.
Never
No invocation is permitted in a schema-maintained expression.
DateTimeConditional
The sealed built-in date/time classifier must inspect evaluated values.
Trait Implementations§
Source§impl Clone for ScalarSchemaSafety
impl Clone for ScalarSchemaSafety
Source§fn clone(&self) -> ScalarSchemaSafety
fn clone(&self) -> ScalarSchemaSafety
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 ScalarSchemaSafety
Source§impl Debug for ScalarSchemaSafety
impl Debug for ScalarSchemaSafety
impl Eq for ScalarSchemaSafety
Source§impl PartialEq for ScalarSchemaSafety
impl PartialEq for ScalarSchemaSafety
impl StructuralPartialEq for ScalarSchemaSafety
Auto Trait Implementations§
impl Freeze for ScalarSchemaSafety
impl RefUnwindSafe for ScalarSchemaSafety
impl Send for ScalarSchemaSafety
impl Sync for ScalarSchemaSafety
impl Unpin for ScalarSchemaSafety
impl UnsafeUnpin for ScalarSchemaSafety
impl UnwindSafe for ScalarSchemaSafety
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