pub struct CreateExtension {
pub name: Ident,
pub if_not_exists: bool,
pub cascade: bool,
pub schema: Option<Ident>,
pub version: Option<Ident>,
}Expand description
CREATE EXTENSION statement Note: this is a PostgreSQL-specific statement
Fields§
§name: IdentExtension name
if_not_exists: boolWhether IF NOT EXISTS was specified for the CREATE EXTENSION.
cascade: boolWhether CASCADE was specified for the CREATE EXTENSION.
schema: Option<Ident>Optional schema name for the extension.
version: Option<Ident>Optional version for the extension.
Trait Implementations§
Source§impl Clone for CreateExtension
impl Clone for CreateExtension
Source§fn clone(&self) -> CreateExtension
fn clone(&self) -> CreateExtension
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 CreateExtension
impl Debug for CreateExtension
Source§impl Display for CreateExtension
impl Display for CreateExtension
Source§impl From<CreateExtension> for Statement
impl From<CreateExtension> for Statement
Source§fn from(ce: CreateExtension) -> Self
fn from(ce: CreateExtension) -> Self
Converts to this type from the input type.
Source§impl Hash for CreateExtension
impl Hash for CreateExtension
Source§impl Ord for CreateExtension
impl Ord for CreateExtension
Source§fn cmp(&self, other: &CreateExtension) -> Ordering
fn cmp(&self, other: &CreateExtension) -> 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 CreateExtension
impl PartialEq for CreateExtension
Source§impl PartialOrd for CreateExtension
impl PartialOrd for CreateExtension
Source§impl Spanned for CreateExtension
impl Spanned for CreateExtension
Source§impl Visit for CreateExtension
impl Visit for CreateExtension
Source§impl VisitMut for CreateExtension
impl VisitMut for CreateExtension
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 CreateExtension
impl StructuralPartialEq for CreateExtension
Auto Trait Implementations§
impl Freeze for CreateExtension
impl RefUnwindSafe for CreateExtension
impl Send for CreateExtension
impl Sync for CreateExtension
impl Unpin for CreateExtension
impl UnsafeUnpin for CreateExtension
impl UnwindSafe for CreateExtension
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