pub struct AssignmentTarget<E = Expr> {
pub column: String,
pub indirection: Vec<AssignmentStep<E>>,
}Expand description
Target syntax is separate from the value expression. Every bound belongs to the original input row, even when repeated targets compose writes to one column.
Fields§
§column: String§indirection: Vec<AssignmentStep<E>>Implementations§
Source§impl<E> AssignmentTarget<E>
impl<E> AssignmentTarget<E>
pub fn is_whole_column(&self) -> bool
pub fn expressions(&self) -> impl Iterator<Item = &E>
pub fn expressions_mut(&mut self) -> impl Iterator<Item = &mut E>
pub fn map<T>(self, map: impl FnMut(E) -> T) -> AssignmentTarget<T>
Trait Implementations§
Source§impl<E: Clone> Clone for AssignmentTarget<E>
impl<E: Clone> Clone for AssignmentTarget<E>
Source§impl<E: Debug> Debug for AssignmentTarget<E>
impl<E: Debug> Debug for AssignmentTarget<E>
Source§impl<'de, E: Deserialize<'de>> Deserialize<'de> for AssignmentTarget<E>
impl<'de, E: Deserialize<'de>> Deserialize<'de> for AssignmentTarget<E>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<E> From<&str> for AssignmentTarget<E>
impl<E> From<&str> for AssignmentTarget<E>
Source§impl<E> From<String> for AssignmentTarget<E>
impl<E> From<String> for AssignmentTarget<E>
Source§impl<E: PartialEq> PartialEq for AssignmentTarget<E>
impl<E: PartialEq> PartialEq for AssignmentTarget<E>
Source§impl<E: Serialize> Serialize for AssignmentTarget<E>
impl<E: Serialize> Serialize for AssignmentTarget<E>
impl<E: PartialEq> StructuralPartialEq for AssignmentTarget<E>
Auto Trait Implementations§
impl<E> Freeze for AssignmentTarget<E>
impl<E> RefUnwindSafe for AssignmentTarget<E>
impl<E> Send for AssignmentTarget<E>
impl<E> Sync for AssignmentTarget<E>
impl<E> Unpin for AssignmentTarget<E>
impl<E> UnsafeUnpin for AssignmentTarget<E>
impl<E> UnwindSafe for AssignmentTarget<E>
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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