pub struct CreateConversion {
pub name: ObjectName,
pub is_default: bool,
pub source_encoding: String,
pub destination_encoding: String,
pub function_name: ObjectName,
}Expand description
A CREATE CONVERSION statement.
Note: this is a PostgreSQL-specific statement. https://www.postgresql.org/docs/current/sql-createconversion.html
Fields§
§name: ObjectNameThe conversion name.
is_default: boolWhether this is a DEFAULT conversion.
source_encoding: StringThe source encoding name (a string literal like 'LATIN1').
destination_encoding: StringThe destination encoding name (a string literal like 'UTF8').
function_name: ObjectNameThe conversion function name.
Trait Implementations§
Source§impl Clone for CreateConversion
impl Clone for CreateConversion
Source§fn clone(&self) -> CreateConversion
fn clone(&self) -> CreateConversion
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 CreateConversion
impl Debug for CreateConversion
Source§impl<'de> Deserialize<'de> for CreateConversion
impl<'de> Deserialize<'de> for CreateConversion
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 CreateConversion
impl Display for CreateConversion
Source§impl From<CreateConversion> for Statement
impl From<CreateConversion> for Statement
Source§fn from(v: CreateConversion) -> Self
fn from(v: CreateConversion) -> Self
Converts to this type from the input type.
Source§impl Hash for CreateConversion
impl Hash for CreateConversion
Source§impl Ord for CreateConversion
impl Ord for CreateConversion
Source§fn cmp(&self, other: &CreateConversion) -> Ordering
fn cmp(&self, other: &CreateConversion) -> 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 CreateConversion
impl PartialEq for CreateConversion
Source§impl PartialOrd for CreateConversion
impl PartialOrd for CreateConversion
Source§impl Serialize for CreateConversion
impl Serialize for CreateConversion
Source§impl Visit for CreateConversion
impl Visit for CreateConversion
Source§impl VisitMut for CreateConversion
impl VisitMut for CreateConversion
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 CreateConversion
impl StructuralPartialEq for CreateConversion
Auto Trait Implementations§
impl Freeze for CreateConversion
impl RefUnwindSafe for CreateConversion
impl Send for CreateConversion
impl Sync for CreateConversion
impl Unpin for CreateConversion
impl UnsafeUnpin for CreateConversion
impl UnwindSafe for CreateConversion
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