pub struct PgExtension { /* private fields */ }Expand description
PostgreSQL extension metadata.
Implementations§
Source§impl PgExtension
impl PgExtension
Sourcepub const fn new(name: PgExtensionName) -> Self
pub const fn new(name: PgExtensionName) -> Self
Creates extension metadata from a name.
Sourcepub fn with_version(self, version: PgExtensionVersion) -> Self
pub fn with_version(self, version: PgExtensionVersion) -> Self
Adds an extension version label.
Sourcepub fn with_schema(self, schema: PgSchemaName) -> Self
pub fn with_schema(self, schema: PgSchemaName) -> Self
Adds schema metadata.
Sourcepub const fn with_relocatable(self, relocatable: bool) -> Self
pub const fn with_relocatable(self, relocatable: bool) -> Self
Adds relocatable metadata.
Sourcepub const fn name(&self) -> &PgExtensionName
pub const fn name(&self) -> &PgExtensionName
Returns the extension name.
Sourcepub const fn version(&self) -> Option<&PgExtensionVersion>
pub const fn version(&self) -> Option<&PgExtensionVersion>
Returns the optional version label.
Sourcepub const fn schema(&self) -> Option<&PgSchemaName>
pub const fn schema(&self) -> Option<&PgSchemaName>
Returns the optional schema metadata.
Sourcepub const fn relocatable(&self) -> Option<bool>
pub const fn relocatable(&self) -> Option<bool>
Returns the optional relocatable metadata.
Trait Implementations§
Source§impl Clone for PgExtension
impl Clone for PgExtension
Source§fn clone(&self) -> PgExtension
fn clone(&self) -> PgExtension
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PgExtension
impl Debug for PgExtension
Source§impl Hash for PgExtension
impl Hash for PgExtension
Source§impl Ord for PgExtension
impl Ord for PgExtension
Source§fn cmp(&self, other: &PgExtension) -> Ordering
fn cmp(&self, other: &PgExtension) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PgExtension
impl PartialEq for PgExtension
Source§fn eq(&self, other: &PgExtension) -> bool
fn eq(&self, other: &PgExtension) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PgExtension
impl PartialOrd for PgExtension
impl Eq for PgExtension
impl StructuralPartialEq for PgExtension
Auto Trait Implementations§
impl Freeze for PgExtension
impl RefUnwindSafe for PgExtension
impl Send for PgExtension
impl Sync for PgExtension
impl Unpin for PgExtension
impl UnsafeUnpin for PgExtension
impl UnwindSafe for PgExtension
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