pub struct PgFunction {
pub schema: String,
pub name: String,
pub in_types: Vec<String>,
pub in_names: Vec<Option<String>>,
pub out_columns: Vec<OutColumn>,
pub returns_set: bool,
}Expand description
One overload of a PostgreSQL function, reduced to what the mutation-contract
check needs: the input arguments (in positional call order, excluding
OUT/TABLE columns) and the output columns.
Fields§
§schema: StringSchema the function lives in.
name: StringFunction name (unqualified).
in_types: Vec<String>Input argument types in call order (format_type), modes IN/INOUT/
VARIADIC only — these are the positions the server binds.
in_names: Vec<Option<String>>Input argument names in call order; None for unnamed positions.
out_columns: Vec<OutColumn>Output columns of the result row (see OutColumn). Empty when the
function returns a scalar / record the catalog cannot expand.
returns_set: boolWhether the function returns a set (RETURNS SETOF … / RETURNS TABLE(…)). Informational only.
Trait Implementations§
Source§impl Clone for PgFunction
impl Clone for PgFunction
Source§fn clone(&self) -> PgFunction
fn clone(&self) -> PgFunction
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 moreSource§impl Debug for PgFunction
impl Debug for PgFunction
impl Eq for PgFunction
Source§impl PartialEq for PgFunction
impl PartialEq for PgFunction
Source§fn eq(&self, other: &PgFunction) -> bool
fn eq(&self, other: &PgFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PgFunction
Auto Trait Implementations§
impl Freeze for PgFunction
impl RefUnwindSafe for PgFunction
impl Send for PgFunction
impl Sync for PgFunction
impl Unpin for PgFunction
impl UnsafeUnpin for PgFunction
impl UnwindSafe for PgFunction
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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