pub struct AddColumnsEntry {
pub name: String,
pub expression: Option<Option<String>>,
pub virtual_column: Option<Option<Box<AddVirtualColumnEntry>>>,
}Fields§
§name: StringName of the new column
expression: Option<Option<String>>SQL expression for the column (optional if virtual_column is specified)
virtual_column: Option<Option<Box<AddVirtualColumnEntry>>>Implementations§
Source§impl AddColumnsEntry
impl AddColumnsEntry
pub fn new(name: String) -> AddColumnsEntry
Trait Implementations§
Source§impl Clone for AddColumnsEntry
impl Clone for AddColumnsEntry
Source§fn clone(&self) -> AddColumnsEntry
fn clone(&self) -> AddColumnsEntry
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 AddColumnsEntry
impl Debug for AddColumnsEntry
Source§impl Default for AddColumnsEntry
impl Default for AddColumnsEntry
Source§fn default() -> AddColumnsEntry
fn default() -> AddColumnsEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AddColumnsEntry
impl<'de> Deserialize<'de> for AddColumnsEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AddColumnsEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AddColumnsEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AddColumnsEntry
impl PartialEq for AddColumnsEntry
Source§fn eq(&self, other: &AddColumnsEntry) -> bool
fn eq(&self, other: &AddColumnsEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AddColumnsEntry
impl Serialize for AddColumnsEntry
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AddColumnsEntry
Auto Trait Implementations§
impl Freeze for AddColumnsEntry
impl RefUnwindSafe for AddColumnsEntry
impl Send for AddColumnsEntry
impl Sync for AddColumnsEntry
impl Unpin for AddColumnsEntry
impl UnsafeUnpin for AddColumnsEntry
impl UnwindSafe for AddColumnsEntry
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<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