pub enum CastFunctionKind {
WithFunction {
function_name: ObjectName,
argument_types: Vec<DataType>,
},
WithoutFunction,
WithInout,
}Expand description
The function binding kind for a CREATE CAST statement.
Note: this is a PostgreSQL-specific construct.
Variants§
WithFunction
WITH FUNCTION function_name(arg_types)
Fields
§
function_name: ObjectNameThe name of the cast implementation function.
WithoutFunction
WITHOUT FUNCTION
WithInout
WITH INOUT
Trait Implementations§
Source§impl Clone for CastFunctionKind
impl Clone for CastFunctionKind
Source§fn clone(&self) -> CastFunctionKind
fn clone(&self) -> CastFunctionKind
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 CastFunctionKind
impl Debug for CastFunctionKind
Source§impl<'de> Deserialize<'de> for CastFunctionKind
impl<'de> Deserialize<'de> for CastFunctionKind
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 CastFunctionKind
impl Display for CastFunctionKind
Source§impl Hash for CastFunctionKind
impl Hash for CastFunctionKind
Source§impl Ord for CastFunctionKind
impl Ord for CastFunctionKind
Source§fn cmp(&self, other: &CastFunctionKind) -> Ordering
fn cmp(&self, other: &CastFunctionKind) -> 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 CastFunctionKind
impl PartialEq for CastFunctionKind
Source§impl PartialOrd for CastFunctionKind
impl PartialOrd for CastFunctionKind
Source§impl Serialize for CastFunctionKind
impl Serialize for CastFunctionKind
Source§impl Visit for CastFunctionKind
impl Visit for CastFunctionKind
Source§impl VisitMut for CastFunctionKind
impl VisitMut for CastFunctionKind
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 CastFunctionKind
impl StructuralPartialEq for CastFunctionKind
Auto Trait Implementations§
impl Freeze for CastFunctionKind
impl RefUnwindSafe for CastFunctionKind
impl Send for CastFunctionKind
impl Sync for CastFunctionKind
impl Unpin for CastFunctionKind
impl UnsafeUnpin for CastFunctionKind
impl UnwindSafe for CastFunctionKind
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