pub struct CreateTablespace {
pub name: Ident,
pub owner: Option<Ident>,
pub location: Value,
pub with_options: Vec<SqlOption>,
}Expand description
A CREATE TABLESPACE statement.
Note: this is a PostgreSQL-specific statement. https://www.postgresql.org/docs/current/sql-createtablespace.html
Fields§
§name: IdentThe tablespace name.
owner: Option<Ident>Optional OWNER role clause.
location: ValueThe LOCATION 'directory' string.
with_options: Vec<SqlOption>Optional WITH (option = value, ...) clause.
Trait Implementations§
Source§impl Clone for CreateTablespace
impl Clone for CreateTablespace
Source§fn clone(&self) -> CreateTablespace
fn clone(&self) -> CreateTablespace
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 CreateTablespace
impl Debug for CreateTablespace
Source§impl<'de> Deserialize<'de> for CreateTablespace
impl<'de> Deserialize<'de> for CreateTablespace
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 CreateTablespace
impl Display for CreateTablespace
Source§impl From<CreateTablespace> for Statement
impl From<CreateTablespace> for Statement
Source§fn from(v: CreateTablespace) -> Self
fn from(v: CreateTablespace) -> Self
Converts to this type from the input type.
Source§impl Hash for CreateTablespace
impl Hash for CreateTablespace
Source§impl Ord for CreateTablespace
impl Ord for CreateTablespace
Source§fn cmp(&self, other: &CreateTablespace) -> Ordering
fn cmp(&self, other: &CreateTablespace) -> 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 CreateTablespace
impl PartialEq for CreateTablespace
Source§impl PartialOrd for CreateTablespace
impl PartialOrd for CreateTablespace
Source§impl Serialize for CreateTablespace
impl Serialize for CreateTablespace
Source§impl Visit for CreateTablespace
impl Visit for CreateTablespace
Source§impl VisitMut for CreateTablespace
impl VisitMut for CreateTablespace
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 CreateTablespace
impl StructuralPartialEq for CreateTablespace
Auto Trait Implementations§
impl Freeze for CreateTablespace
impl RefUnwindSafe for CreateTablespace
impl Send for CreateTablespace
impl Sync for CreateTablespace
impl Unpin for CreateTablespace
impl UnsafeUnpin for CreateTablespace
impl UnwindSafe for CreateTablespace
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