pub struct TotalFunction {
pub name: String,
pub arity: i32,
pub returns: Affinity,
}Expand description
A scalar function the host registers on its own connection, which the engine’s replay cannot
see: the replay registers a stub under the same name and argument count, so a statement calling
it prepares, and the function table types a call as returns, NULL only when an argument is.
A function the host vouches for as total, Postgres’s Trust::total in SQLite’s terms: NULL only
when an argument is, with the argument count SQLite resolves a call by.
Fields§
§name: String§arity: i32How many arguments it takes; -1 for any number.
returns: AffinityThe storage class its value lands in.
Trait Implementations§
Source§impl Clone for TotalFunction
impl Clone for TotalFunction
Source§impl Debug for TotalFunction
impl Debug for TotalFunction
impl Eq for TotalFunction
Source§impl PartialEq for TotalFunction
impl PartialEq for TotalFunction
impl StructuralPartialEq for TotalFunction
Auto Trait Implementations§
impl Forget for TotalFunction
impl Freeze for TotalFunction
impl Move for TotalFunction
impl RefUnwindSafe for TotalFunction
impl Send for TotalFunction
impl Sync for TotalFunction
impl Unpin for TotalFunction
impl UnsafeUnpin for TotalFunction
impl UnwindSafe for TotalFunction
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.