pub struct ComputedRef {
pub function: QualifiedIdentifier,
pub relation: String,
pub row_type: QualifiedIdentifier,
}Expand description
A computed field: a function applied to the row.
Fields§
§function: QualifiedIdentifierThe function to call.
relation: StringThe relation whose row it takes, as it is named in the query.
row_type: QualifiedIdentifierThe type that row is, which is not always what the query can infer.
A mutation reads its rows back out of a CTE, and a CTE’s row is a
record: computed_overload(record) is not unique is PostgreSQL
declining to choose between the overload on items and the one on
items2, because nothing said which it had. Casting the row to the
relation’s own type says so, and is a no-op everywhere it was already
unambiguous.
Trait Implementations§
Source§impl Clone for ComputedRef
impl Clone for ComputedRef
Source§fn clone(&self) -> ComputedRef
fn clone(&self) -> ComputedRef
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 ComputedRef
impl Debug for ComputedRef
Source§impl<'de> Deserialize<'de> for ComputedRef
impl<'de> Deserialize<'de> for ComputedRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ComputedRef
impl RefUnwindSafe for ComputedRef
impl Send for ComputedRef
impl Sync for ComputedRef
impl Unpin for ComputedRef
impl UnsafeUnpin for ComputedRef
impl UnwindSafe for ComputedRef
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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