pub struct PgLanguage {Show 13 fields
pub lanname: SmolStr,
pub lanowner: SmolStr,
pub lanispl: bool,
pub lanpltrusted: bool,
pub lanplcallfoid: Option<SmolStr>,
pub laninline: Option<SmolStr>,
pub lanvalidator: Option<SmolStr>,
pub lanacl: Option<Vec<AclItem<LanguageAclPrivilege>>>,
pub description: Option<SmolStr>,
pub seclabel: Option<SmolStr>,
pub seclabel_provider: Option<SmolStr>,
pub initprivs: Option<Vec<AclItem<LanguageAclPrivilege>>>,
pub initprivs_type: Option<PgLanguageInitprivsType>,
}Expand description
The DDL-only contents of pg_language
Fields§
§lanname: SmolStrname Name of the language
lanowner: SmolStroid (references pg_authid.oid) Owner of the language
lanispl: boolbool This is false for internal languages (such as SQL) and true for user-defined languages. Currently, pg_dump still uses this to determine which languages need to be dumped, but this might be replaced by a different mechanism in the future.
lanpltrusted: boolbool True if this is a trusted language, which means that it is believed not to grant access to anything outside the normal SQL execution environment. Only superusers can create functions in untrusted languages.
lanplcallfoid: Option<SmolStr>oid (references pg_proc.oid) For noninternal languages this references the language handler, which is a special function that is responsible for executing all functions that are written in the particular language. Zero for internal languages.
laninline: Option<SmolStr>oid (references pg_proc.oid) This references a function that is responsible for executing “inline” anonymous code blocks (DO blocks). Zero if inline blocks are not supported.
lanvalidator: Option<SmolStr>oid (references pg_proc.oid) This references a language validator function that is responsible for checking the syntax and validity of new functions when they are created. Zero if no validator is provided.
lanacl: Option<Vec<AclItem<LanguageAclPrivilege>>>aclitem[] Access privileges; see Section 5.8 for details
description: Option<SmolStr>text The comment from pg_description
seclabel: Option<SmolStr>text The seclabel from pg_seclabel
seclabel_provider: Option<SmolStr>text The provider from pg_seclabel
initprivs: Option<Vec<AclItem<LanguageAclPrivilege>>>aclitem[] The initial access privileges from pg_init_privs.
initprivs_type: Option<PgLanguageInitprivsType>char A code defining the type of initial privilege of this object from pg_init_privs. ‘i’ if set by initdb, ‘e’ if set by CREATE EXTENSION.
Trait Implementations§
Source§impl Clone for PgLanguage
impl Clone for PgLanguage
Source§fn clone(&self) -> PgLanguage
fn clone(&self) -> PgLanguage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PgLanguage
impl Debug for PgLanguage
Source§impl<'de> Deserialize<'de> for PgLanguage
impl<'de> Deserialize<'de> for PgLanguage
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgLanguage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgLanguage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Equivalent<PgLanguage> for SmolStr
impl Equivalent<PgLanguage> for SmolStr
Source§fn equivalent(&self, key: &PgLanguage) -> bool
fn equivalent(&self, key: &PgLanguage) -> bool
key and return true if they are equal.Source§impl Equivalent<PgLanguage> for str
impl Equivalent<PgLanguage> for str
Source§fn equivalent(&self, key: &PgLanguage) -> bool
fn equivalent(&self, key: &PgLanguage) -> bool
key and return true if they are equal.Source§impl Hash for PgLanguage
impl Hash for PgLanguage
Source§impl PartialEq for PgLanguage
impl PartialEq for PgLanguage
Source§impl Serialize for PgLanguage
impl Serialize for PgLanguage
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for PgLanguage
impl StructuralPartialEq for PgLanguage
Auto Trait Implementations§
impl Freeze for PgLanguage
impl RefUnwindSafe for PgLanguage
impl Send for PgLanguage
impl Sync for PgLanguage
impl Unpin for PgLanguage
impl UnsafeUnpin for PgLanguage
impl UnwindSafe for PgLanguage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.