#[non_exhaustive]pub struct ComputedField {
pub alias: String,
pub expression: String,
}Expand description
A computed field expression with alias.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.alias: StringThe alias for the computed field.
expression: StringThe SQL expression (e.g., “first_name || ’ ’ || last_name”).
Implementations§
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 moreSource§impl Debug for ComputedField
impl Debug for ComputedField
Source§impl PartialEq for ComputedField
impl PartialEq for ComputedField
impl Eq for ComputedField
impl StructuralPartialEq for ComputedField
Auto Trait Implementations§
impl Freeze for ComputedField
impl RefUnwindSafe for ComputedField
impl Send for ComputedField
impl Sync for ComputedField
impl Unpin 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