pub enum FunctionBehavior {
Immutable,
Stable,
Volatile,
}Expand description
Function volatility category
Specifies whether the function modifies the database or depends on database state.
§Examples
use reinhardt_query::types::function::FunctionBehavior;
let behavior = FunctionBehavior::Immutable; // Result depends only on arguments
let behavior = FunctionBehavior::Stable; // Result depends on DB state (same within transaction)
let behavior = FunctionBehavior::Volatile; // Result may change (default)Variants§
Immutable
IMMUTABLE - Result depends only on arguments, never changes
Stable
STABLE - Result depends on database state, but stable within a transaction
Volatile
VOLATILE - Result may change even within a transaction (default)
Trait Implementations§
Source§impl Clone for FunctionBehavior
impl Clone for FunctionBehavior
Source§fn clone(&self) -> FunctionBehavior
fn clone(&self) -> FunctionBehavior
Returns a duplicate of the value. Read more
1.0.0 · 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 FunctionBehavior
impl Debug for FunctionBehavior
Source§impl PartialEq for FunctionBehavior
impl PartialEq for FunctionBehavior
impl Eq for FunctionBehavior
impl StructuralPartialEq for FunctionBehavior
Auto Trait Implementations§
impl Freeze for FunctionBehavior
impl RefUnwindSafe for FunctionBehavior
impl Send for FunctionBehavior
impl Sync for FunctionBehavior
impl Unpin for FunctionBehavior
impl UnsafeUnpin for FunctionBehavior
impl UnwindSafe for FunctionBehavior
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