pub enum OwnerObjectKind {
Schema,
Sequence,
Table,
View,
MaterializedView,
Function,
Procedure,
UserType,
Publication,
Subscription,
Statistic,
Collation,
}Expand description
Object kind discriminant for the renderer (ALTER TABLE x OWNER TO,
ALTER SCHEMA x OWNER TO, etc.).
Variants§
Schema
ALTER SCHEMA x OWNER TO.
Sequence
ALTER SEQUENCE x OWNER TO.
Table
ALTER TABLE x OWNER TO.
View
ALTER VIEW x OWNER TO.
MaterializedView
ALTER MATERIALIZED VIEW x OWNER TO.
Function
ALTER FUNCTION x() OWNER TO.
Procedure
ALTER PROCEDURE x() OWNER TO.
UserType
ALTER TYPE x OWNER TO.
Publication
ALTER PUBLICATION x OWNER TO.
Subscription
ALTER SUBSCRIPTION x OWNER TO.
Statistic
ALTER STATISTICS x OWNER TO.
Collation
ALTER COLLATION x OWNER TO.
Implementations§
Source§impl OwnerObjectKind
impl OwnerObjectKind
Sourcepub const fn sql_keyword(self) -> &'static str
pub const fn sql_keyword(self) -> &'static str
The SQL keyword(s) used in ALTER <keyword> <name> OWNER TO <role>.
Trait Implementations§
Source§impl Clone for OwnerObjectKind
impl Clone for OwnerObjectKind
Source§fn clone(&self) -> OwnerObjectKind
fn clone(&self) -> OwnerObjectKind
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 OwnerObjectKind
impl Debug for OwnerObjectKind
Source§impl<'de> Deserialize<'de> for OwnerObjectKind
impl<'de> Deserialize<'de> for OwnerObjectKind
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 Hash for OwnerObjectKind
impl Hash for OwnerObjectKind
Source§impl PartialEq for OwnerObjectKind
impl PartialEq for OwnerObjectKind
Source§fn eq(&self, other: &OwnerObjectKind) -> bool
fn eq(&self, other: &OwnerObjectKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OwnerObjectKind
impl Serialize for OwnerObjectKind
impl Copy for OwnerObjectKind
impl Eq for OwnerObjectKind
impl StructuralPartialEq for OwnerObjectKind
Auto Trait Implementations§
impl Freeze for OwnerObjectKind
impl RefUnwindSafe for OwnerObjectKind
impl Send for OwnerObjectKind
impl Sync for OwnerObjectKind
impl Unpin for OwnerObjectKind
impl UnsafeUnpin for OwnerObjectKind
impl UnwindSafe for OwnerObjectKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more