pub struct PgForeignDataWrapper {
pub fdwname: SmolStr,
pub fdwowner: SmolStr,
pub fdwhandler: Option<SmolStr>,
pub fdwvalidator: Option<SmolStr>,
pub fdwacl: Option<Vec<AclItem<ForeignDataWrapperAclPrivilege>>>,
pub fdwoptions: Option<Vec<SmolStr>>,
pub description: Option<SmolStr>,
pub initprivs: Option<Vec<AclItem<ForeignDataWrapperAclPrivilege>>>,
pub initprivs_type: Option<PgForeignDataWrapperInitprivsType>,
}Expand description
The DDL-only contents of pg_foreign_data_wrapper
Fields§
§fdwname: SmolStrname Name of the foreign-data wrapper
fdwowner: SmolStroid (references pg_authid.oid) Owner of the foreign-data wrapper
fdwhandler: Option<SmolStr>oid (references pg_proc.oid) References a handler function that is responsible for supplying execution routines for the foreign-data wrapper. Zero if no handler is provided
fdwvalidator: Option<SmolStr>oid (references pg_proc.oid) References a validator function that is responsible for checking the validity of the options given to the foreign-data wrapper, as well as options for foreign servers and user mappings using the foreign-data wrapper. Zero if no validator is provided
fdwacl: Option<Vec<AclItem<ForeignDataWrapperAclPrivilege>>>aclitem[] Access privileges; see Section 5.8 for details
fdwoptions: Option<Vec<SmolStr>>text[] Foreign-data wrapper specific options, as “keyword=value” strings
description: Option<SmolStr>text The comment from pg_description
initprivs: Option<Vec<AclItem<ForeignDataWrapperAclPrivilege>>>aclitem[] The initial access privileges from pg_init_privs.
initprivs_type: Option<PgForeignDataWrapperInitprivsType>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 PgForeignDataWrapper
impl Clone for PgForeignDataWrapper
Source§fn clone(&self) -> PgForeignDataWrapper
fn clone(&self) -> PgForeignDataWrapper
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PgForeignDataWrapper
impl Debug for PgForeignDataWrapper
Source§impl<'de> Deserialize<'de> for PgForeignDataWrapper
impl<'de> Deserialize<'de> for PgForeignDataWrapper
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgForeignDataWrapper, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgForeignDataWrapper, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PgForeignDataWrapper
impl PartialEq for PgForeignDataWrapper
Source§impl Serialize for PgForeignDataWrapper
impl Serialize for PgForeignDataWrapper
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 PgForeignDataWrapper
impl StructuralPartialEq for PgForeignDataWrapper
Auto Trait Implementations§
impl Freeze for PgForeignDataWrapper
impl RefUnwindSafe for PgForeignDataWrapper
impl Send for PgForeignDataWrapper
impl Sync for PgForeignDataWrapper
impl Unpin for PgForeignDataWrapper
impl UnsafeUnpin for PgForeignDataWrapper
impl UnwindSafe for PgForeignDataWrapper
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.