pub struct TransformElement {
pub is_from: bool,
pub function: ObjectName,
pub arg_types: Vec<DataType>,
}Expand description
A single element in a CREATE TRANSFORM transform list.
Either FROM SQL WITH FUNCTION name(arg_types) or TO SQL WITH FUNCTION name(arg_types).
Note: this is a PostgreSQL-specific concept. https://www.postgresql.org/docs/current/sql-createtransform.html
Fields§
§is_from: booltrue = FROM SQL, false = TO SQL
function: ObjectNameThe function name.
arg_types: Vec<DataType>The argument type list (may be empty).
Trait Implementations§
Source§impl Clone for TransformElement
impl Clone for TransformElement
Source§fn clone(&self) -> TransformElement
fn clone(&self) -> TransformElement
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 TransformElement
impl Debug for TransformElement
Source§impl<'de> Deserialize<'de> for TransformElement
impl<'de> Deserialize<'de> for TransformElement
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
Source§impl Display for TransformElement
impl Display for TransformElement
Source§impl Hash for TransformElement
impl Hash for TransformElement
Source§impl Ord for TransformElement
impl Ord for TransformElement
Source§fn cmp(&self, other: &TransformElement) -> Ordering
fn cmp(&self, other: &TransformElement) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TransformElement
impl PartialEq for TransformElement
Source§impl PartialOrd for TransformElement
impl PartialOrd for TransformElement
Source§impl Serialize for TransformElement
impl Serialize for TransformElement
Source§impl Visit for TransformElement
impl Visit for TransformElement
Source§impl VisitMut for TransformElement
impl VisitMut for TransformElement
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for TransformElement
impl StructuralPartialEq for TransformElement
Auto Trait Implementations§
impl Freeze for TransformElement
impl RefUnwindSafe for TransformElement
impl Send for TransformElement
impl Sync for TransformElement
impl Unpin for TransformElement
impl UnsafeUnpin for TransformElement
impl UnwindSafe for TransformElement
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