pub struct OutColumn {
pub name: String,
pub type_name: String,
pub is_enum: bool,
}Expand description
A single output column of a PostgreSQL function’s result row.
Populated from either the OUT/TABLE parameters of a RETURNS TABLE(…)
function or the attributes of a composite RETURNS <type> — both are how
FraiseQL mutation functions declare the row the server decodes into
MutationResponse.
Fields§
§name: StringColumn name as it appears in the result row (matched against the
MutationResponse field names).
type_name: Stringformat_type rendering of the column type (e.g. "boolean",
"jsonb", "text[]", "app.mutation_error_class").
is_enum: boolWhether the column type is a PostgreSQL enum (pg_type.typtype = 'e').
Mutation functions legitimately type error_class as either text or a
project-specific enum, so the contract check accepts both.
Trait Implementations§
impl Eq for OutColumn
impl StructuralPartialEq for OutColumn
Auto Trait Implementations§
impl Freeze for OutColumn
impl RefUnwindSafe for OutColumn
impl Send for OutColumn
impl Sync for OutColumn
impl Unpin for OutColumn
impl UnsafeUnpin for OutColumn
impl UnwindSafe for OutColumn
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.