pub struct PgAggregate {Show 20 fields
pub aggfnoid: SmolStr,
pub aggkind: PgAggregateAggkind,
pub aggnumdirectargs: u16,
pub aggtransfn: SmolStr,
pub aggfinalfn: Option<SmolStr>,
pub aggcombinefn: Option<SmolStr>,
pub aggserialfn: Option<SmolStr>,
pub aggdeserialfn: Option<SmolStr>,
pub aggmtransfn: Option<SmolStr>,
pub aggminvtransfn: Option<SmolStr>,
pub aggmfinalfn: Option<SmolStr>,
pub aggfinalextra: bool,
pub aggmfinalextra: bool,
pub aggfinalmodify: PgAggregateAggfinalmodify,
pub aggmfinalmodify: PgAggregateAggmfinalmodify,
pub aggsortop: Option<SmolStr>,
pub aggtranstype: SmolStr,
pub aggmtranstype: Option<SmolStr>,
pub agginitval: Option<SmolStr>,
pub aggminitval: Option<SmolStr>,
}Expand description
The DDL-only contents of pg_aggregate
Fields§
§aggfnoid: SmolStrregproc (references pg_proc.oid) pg_proc OID of the aggregate function
aggkind: PgAggregateAggkindchar Aggregate kind: n for “normal” aggregates, o for “ordered-set” aggregates, or h for “hypothetical-set” aggregates
aggnumdirectargs: u16int2 Number of direct (non-aggregated) arguments of an ordered-set or hypothetical-set aggregate, counting a variadic array as one argument. If equal to pronargs, the aggregate must be variadic and the variadic array describes the aggregated arguments as well as the final direct arguments. Always zero for normal aggregates.
aggtransfn: SmolStrregproc (references pg_proc.oid) Transition function
aggfinalfn: Option<SmolStr>regproc (references pg_proc.oid) Final function (zero if none)
aggcombinefn: Option<SmolStr>regproc (references pg_proc.oid) Combine function (zero if none)
aggserialfn: Option<SmolStr>regproc (references pg_proc.oid) Serialization function (zero if none)
aggdeserialfn: Option<SmolStr>regproc (references pg_proc.oid) Deserialization function (zero if none)
aggmtransfn: Option<SmolStr>regproc (references pg_proc.oid) Forward transition function for moving-aggregate mode (zero if none)
aggminvtransfn: Option<SmolStr>regproc (references pg_proc.oid) Inverse transition function for moving-aggregate mode (zero if none)
aggmfinalfn: Option<SmolStr>regproc (references pg_proc.oid) Final function for moving-aggregate mode (zero if none)
aggfinalextra: boolbool True to pass extra dummy arguments to aggfinalfn
aggmfinalextra: boolbool True to pass extra dummy arguments to aggmfinalfn
aggfinalmodify: PgAggregateAggfinalmodifychar Whether aggfinalfn modifies the transition state value: r if it is read-only, s if the aggtransfn cannot be applied after the aggfinalfn, or w if it writes on the value
aggmfinalmodify: PgAggregateAggmfinalmodifychar Like aggfinalmodify, but for the aggmfinalfn
aggsortop: Option<SmolStr>oid (references pg_operator.oid) Associated sort operator (zero if none)
aggtranstype: SmolStroid (references pg_type.oid) Data type of the aggregate function’s internal transition (state) data
aggmtranstype: Option<SmolStr>oid (references pg_type.oid) Data type of the aggregate function’s internal transition (state) data for moving-aggregate mode (zero if none)
agginitval: Option<SmolStr>text The initial value of the transition state. This is a text field containing the initial value in its external string representation. If this field is null, the transition state value starts out null.
aggminitval: Option<SmolStr>text The initial value of the transition state for moving-aggregate mode. This is a text field containing the initial value in its external string representation. If this field is null, the transition state value starts out null.
Trait Implementations§
Source§impl Clone for PgAggregate
impl Clone for PgAggregate
Source§fn clone(&self) -> PgAggregate
fn clone(&self) -> PgAggregate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PgAggregate
impl Debug for PgAggregate
Source§impl<'de> Deserialize<'de> for PgAggregate
impl<'de> Deserialize<'de> for PgAggregate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgAggregate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgAggregate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PgAggregate
impl PartialEq for PgAggregate
Source§impl Serialize for PgAggregate
impl Serialize for PgAggregate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for PgAggregate
impl StructuralPartialEq for PgAggregate
Auto Trait Implementations§
impl Freeze for PgAggregate
impl RefUnwindSafe for PgAggregate
impl Send for PgAggregate
impl Sync for PgAggregate
impl Unpin for PgAggregate
impl UnsafeUnpin for PgAggregate
impl UnwindSafe for PgAggregate
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
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
key and return true if they are equal.