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 more
Source§impl Debug for CreateExtension
impl Debug for CreateExtension
Source§impl<'de> Deserialize<'de> for CreateExtension
impl<'de> Deserialize<'de> for CreateExtension
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>,
where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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,
where 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§fn partial_cmp(&self, other: &CreateExtension) -> Option<Ordering>
fn partial_cmp(&self, other: &CreateExtension) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§fn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
Tests less than or equal to (for self and other) and is used by the
<= operator. Read more
Source§impl Serialize for CreateExtension
impl Serialize 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 more
impl 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 UnwindSafe for CreateExtension
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
where 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
where T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
where T: for<'de> Deserialize<'de>,