pub struct CreateCast {
pub source_type: DataType,
pub target_type: DataType,
pub function_kind: CastFunctionKind,
pub cast_context: CastContext,
}Expand description
A CREATE CAST statement.
Note: this is a PostgreSQL-specific statement. https://www.postgresql.org/docs/current/sql-createcast.html
Fields§
§source_type: DataTypeThe source type.
target_type: DataTypeThe target type.
function_kind: CastFunctionKindHow the cast is implemented.
cast_context: CastContextThe cast context (explicit, assignment, or implicit).
Trait Implementations§
Source§impl Clone for CreateCast
impl Clone for CreateCast
Source§fn clone(&self) -> CreateCast
fn clone(&self) -> CreateCast
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 CreateCast
impl Debug for CreateCast
Source§impl<'de> Deserialize<'de> for CreateCast
impl<'de> Deserialize<'de> for CreateCast
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 CreateCast
impl Display for CreateCast
Source§impl From<CreateCast> for Statement
impl From<CreateCast> for Statement
Source§fn from(v: CreateCast) -> Self
fn from(v: CreateCast) -> Self
Converts to this type from the input type.
Source§impl Hash for CreateCast
impl Hash for CreateCast
Source§impl Ord for CreateCast
impl Ord for CreateCast
Source§fn cmp(&self, other: &CreateCast) -> Ordering
fn cmp(&self, other: &CreateCast) -> 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 CreateCast
impl PartialEq for CreateCast
Source§impl PartialOrd for CreateCast
impl PartialOrd for CreateCast
Source§impl Serialize for CreateCast
impl Serialize for CreateCast
Source§impl Visit for CreateCast
impl Visit for CreateCast
Source§impl VisitMut for CreateCast
impl VisitMut for CreateCast
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 CreateCast
impl StructuralPartialEq for CreateCast
Auto Trait Implementations§
impl Freeze for CreateCast
impl RefUnwindSafe for CreateCast
impl Send for CreateCast
impl Sync for CreateCast
impl Unpin for CreateCast
impl UnsafeUnpin for CreateCast
impl UnwindSafe for CreateCast
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