pub struct PgForeignServer {
pub srvname: SmolStr,
pub srvowner: SmolStr,
pub srvfdw: SmolStr,
pub srvtype: Option<SmolStr>,
pub srvversion: Option<SmolStr>,
pub srvacl: Option<Vec<AclItem<ForeignServerAclPrivilege>>>,
pub srvoptions: Option<Vec<SmolStr>>,
pub description: Option<SmolStr>,
pub initprivs: Option<Vec<AclItem<ForeignServerAclPrivilege>>>,
pub initprivs_type: Option<PgForeignServerInitprivsType>,
}Expand description
The DDL-only contents of pg_foreign_server
Fields§
§srvname: SmolStrname Name of the foreign server
srvowner: SmolStroid (references pg_authid.oid) Owner of the foreign server
srvfdw: SmolStroid (references pg_foreign_data_wrapper.oid) OID of the foreign-data wrapper of this foreign server
srvtype: Option<SmolStr>text Type of the server (optional)
srvversion: Option<SmolStr>text Version of the server (optional)
srvacl: Option<Vec<AclItem<ForeignServerAclPrivilege>>>aclitem[] Access privileges; see Section 5.8 for details
srvoptions: Option<Vec<SmolStr>>text[] Foreign server specific options, as “keyword=value” strings
description: Option<SmolStr>text The comment from pg_description
initprivs: Option<Vec<AclItem<ForeignServerAclPrivilege>>>aclitem[] The initial access privileges from pg_init_privs.
initprivs_type: Option<PgForeignServerInitprivsType>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 PgForeignServer
impl Clone for PgForeignServer
Source§fn clone(&self) -> PgForeignServer
fn clone(&self) -> PgForeignServer
Returns a duplicate of the value. Read more
1.0.0 · 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 PgForeignServer
impl Debug for PgForeignServer
Source§impl<'de> Deserialize<'de> for PgForeignServer
impl<'de> Deserialize<'de> for PgForeignServer
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgForeignServer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgForeignServer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PgForeignServer
impl PartialEq for PgForeignServer
Source§impl Serialize for PgForeignServer
impl Serialize for PgForeignServer
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,
Serialize this value into the given Serde serializer. Read more
impl Eq for PgForeignServer
impl StructuralPartialEq for PgForeignServer
Auto Trait Implementations§
impl Freeze for PgForeignServer
impl RefUnwindSafe for PgForeignServer
impl Send for PgForeignServer
impl Sync for PgForeignServer
impl Unpin for PgForeignServer
impl UnsafeUnpin for PgForeignServer
impl UnwindSafe for PgForeignServer
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<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
Compare self to
key and return true if they are equal.