pub struct StoredDomain<Owner = RoleIdentity> {
pub object_id: [u8; 16],
pub oid: u32,
pub array_oid: Option<u32>,
pub identity: RelationIdentity,
pub owner: Owner,
pub definition: CreateDomain,
pub array_name: Option<String>,
pub usage_acl: Option<Vec<ObjectAclEntry>>,
}Fields§
§object_id: [u8; 16]§oid: u32§array_oid: Option<u32>The OID of the generated array type, allocated before the domain’s own as DefineDomain does. Domains created before array OIDs were recorded derive both OIDs from their identity.
identity: RelationIdentity§owner: Owner§definition: CreateDomain§array_name: Option<String>Name of the generated array type, chosen as makeArrayTypeName chooses it. Domains created before array names were recorded use the uncontested name.
usage_acl: Option<Vec<ObjectAclEntry>>Explicit USAGE privileges; None is the default ACL (PUBLIC and the owner).
Implementations§
Source§impl<Owner> StoredDomain<Owner>
impl<Owner> StoredDomain<Owner>
pub fn column_type(&self) -> ColumnType
Sourcepub fn array_type_name(&self) -> String
pub fn array_type_name(&self) -> String
The name of the domain’s generated array type.
Source§impl StoredDomain<String>
impl StoredDomain<String>
Sourcepub fn bind_owner(
self,
roles: &BTreeMap<String, RoleDefinition>,
) -> Result<StoredDomain, String>
pub fn bind_owner( self, roles: &BTreeMap<String, RoleDefinition>, ) -> Result<StoredDomain, String>
Bind a legacy name only when the catalog restoration owner allows conversion.
Trait Implementations§
Source§impl<Owner: Clone> Clone for StoredDomain<Owner>
impl<Owner: Clone> Clone for StoredDomain<Owner>
Source§impl<Owner: Debug> Debug for StoredDomain<Owner>
impl<Owner: Debug> Debug for StoredDomain<Owner>
Source§impl<'de, Owner> Deserialize<'de> for StoredDomain<Owner>where
Owner: Deserialize<'de>,
impl<'de, Owner> Deserialize<'de> for StoredDomain<Owner>where
Owner: Deserialize<'de>,
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
Auto Trait Implementations§
impl<Owner> Freeze for StoredDomain<Owner>where
Owner: Freeze,
impl<Owner> RefUnwindSafe for StoredDomain<Owner>where
Owner: RefUnwindSafe,
impl<Owner> Send for StoredDomain<Owner>where
Owner: Send,
impl<Owner> Sync for StoredDomain<Owner>where
Owner: Sync,
impl<Owner> Unpin for StoredDomain<Owner>where
Owner: Unpin,
impl<Owner> UnsafeUnpin for StoredDomain<Owner>where
Owner: UnsafeUnpin,
impl<Owner> UnwindSafe for StoredDomain<Owner>where
Owner: UnwindSafe,
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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