pub struct CreateForeignDataWrapper {
pub name: Ident,
pub routines: Vec<ForeignDataWrapperRoutineClause>,
pub options: Option<Vec<CreateServerOption>>,
}Expand description
A CREATE FOREIGN DATA WRAPPER statement.
See PostgreSQL
Fields§
§name: IdentThe name of the foreign-data wrapper. Per PostgreSQL this is a bare identifier and cannot be schema-qualified.
routines: Vec<ForeignDataWrapperRoutineClause>HANDLER and VALIDATOR clauses in source order. PostgreSQL’s grammar
accepts repeated clauses and rejects them only when executing the statement.
options: Option<Vec<CreateServerOption>>Optional OPTIONS (key 'value', ...) clause.
Trait Implementations§
Source§impl Clone for CreateForeignDataWrapper
impl Clone for CreateForeignDataWrapper
Source§fn clone(&self) -> CreateForeignDataWrapper
fn clone(&self) -> CreateForeignDataWrapper
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateForeignDataWrapper
impl Debug for CreateForeignDataWrapper
Source§impl Display for CreateForeignDataWrapper
impl Display for CreateForeignDataWrapper
impl Eq for CreateForeignDataWrapper
Source§impl From<CreateForeignDataWrapper> for Statement
impl From<CreateForeignDataWrapper> for Statement
Source§fn from(v: CreateForeignDataWrapper) -> Self
fn from(v: CreateForeignDataWrapper) -> Self
Converts to this type from the input type.
Source§impl Hash for CreateForeignDataWrapper
impl Hash for CreateForeignDataWrapper
Source§impl Ord for CreateForeignDataWrapper
impl Ord for CreateForeignDataWrapper
Source§fn cmp(&self, other: &CreateForeignDataWrapper) -> Ordering
fn cmp(&self, other: &CreateForeignDataWrapper) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CreateForeignDataWrapper
impl PartialEq for CreateForeignDataWrapper
Source§impl PartialOrd for CreateForeignDataWrapper
impl PartialOrd for CreateForeignDataWrapper
Source§impl Spanned for CreateForeignDataWrapper
impl Spanned for CreateForeignDataWrapper
impl StructuralPartialEq for CreateForeignDataWrapper
Auto Trait Implementations§
impl Freeze for CreateForeignDataWrapper
impl RefUnwindSafe for CreateForeignDataWrapper
impl Send for CreateForeignDataWrapper
impl Sync for CreateForeignDataWrapper
impl Unpin for CreateForeignDataWrapper
impl UnsafeUnpin for CreateForeignDataWrapper
impl UnwindSafe for CreateForeignDataWrapper
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