pub struct ComputedField {
pub function: QualifiedIdentifier,
pub return_type: CompactString,
pub returns_set: bool,
}Expand description
Computed field metadata
Represents a function that can be used as a computed field on a table. The function takes a table row type as the first parameter and returns a scalar value.
Fields§
§function: QualifiedIdentifierFunction qualified identifier
return_type: CompactStringReturn type (scalar)
returns_set: boolWhether function returns a set
Trait Implementations§
Source§impl Clone for ComputedField
impl Clone for ComputedField
Source§fn clone(&self) -> ComputedField
fn clone(&self) -> ComputedField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComputedField
impl RefUnwindSafe for ComputedField
impl Send for ComputedField
impl Sync for ComputedField
impl Unpin for ComputedField
impl UnsafeUnpin for ComputedField
impl UnwindSafe for ComputedField
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