pub struct ResolvedTypeObject { /* private fields */ }Implementations§
Source§impl ResolvedTypeObject
impl ResolvedTypeObject
pub fn oid(&self) -> u32
Sourcepub fn require_domain_keyword(
&self,
context: &TypeObjectBinding<'_>,
kind: TypeObjectKind,
) -> Result<(), SQLError>
pub fn require_domain_keyword( &self, context: &TypeObjectBinding<'_>, kind: TypeObjectKind, ) -> Result<(), SQLError>
ALTER DOMAIN and GRANT ... ON DOMAIN name only domains.
Sourcepub fn require_owner(
&self,
context: &TypeObjectBinding<'_>,
) -> Result<(), SQLError>
pub fn require_owner( &self, context: &TypeObjectBinding<'_>, ) -> Result<(), SQLError>
object_ownercheck on the type: the current role must have the owner’s privileges. An array type is owned by its element’s owner.
Sourcepub fn row_type_identity(&self) -> Option<RelationIdentity>
pub fn row_type_identity(&self) -> Option<RelationIdentity>
The relation of a table row type, which SET SCHEMA reports after its duplicate-name check.
Sourcepub fn reject_row_type(
&self,
context: &TypeObjectBinding<'_>,
) -> Result<(), SQLError>
pub fn reject_row_type( &self, context: &TypeObjectBinding<'_>, ) -> Result<(), SQLError>
A table’s row type is altered through ALTER TABLE.
Sourcepub fn reject_array(
&self,
context: &TypeObjectBinding<'_>,
) -> Result<(), SQLError>
pub fn reject_array( &self, context: &TypeObjectBinding<'_>, ) -> Result<(), SQLError>
A generated array type follows its element type.
Sourcepub fn require_grant_target(
&self,
context: &TypeObjectBinding<'_>,
kind: TypeObjectKind,
) -> Result<(), SQLError>
pub fn require_grant_target( &self, context: &TypeObjectBinding<'_>, kind: TypeObjectKind, ) -> Result<(), SQLError>
ExecGrant_Type_check: array types have no privileges of their own, and ON DOMAIN names only domains.
Sourcepub fn into_type_object(
self,
context: &TypeObjectBinding<'_>,
) -> Result<TypeObject, SQLError>
pub fn into_type_object( self, context: &TypeObjectBinding<'_>, ) -> Result<TypeObject, SQLError>
The user-defined type to change. Built-in types, system catalog domains and relation row types have fixed definitions here.
Trait Implementations§
Source§impl Clone for ResolvedTypeObject
impl Clone for ResolvedTypeObject
Auto Trait Implementations§
impl Freeze for ResolvedTypeObject
impl RefUnwindSafe for ResolvedTypeObject
impl Send for ResolvedTypeObject
impl Sync for ResolvedTypeObject
impl Unpin for ResolvedTypeObject
impl UnsafeUnpin for ResolvedTypeObject
impl UnwindSafe for ResolvedTypeObject
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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