pub struct PgExtensionName(/* private fields */);Expand description
PostgreSQL extension name primitive.
Implementations§
Source§impl PgExtensionName
impl PgExtensionName
Sourcepub fn new(input: impl AsRef<str>) -> Result<Self, PgExtensionError>
pub fn new(input: impl AsRef<str>) -> Result<Self, PgExtensionError>
Creates an extension name label.
§Errors
Returns PgExtensionError when the label is empty or contains unsupported characters.
Sourcepub fn uuid_ossp() -> Self
pub fn uuid_ossp() -> Self
Returns uuid-ossp as an extension name.
§Panics
Panics only if the built-in uuid-ossp constant is changed to an invalid extension label.
Sourcepub fn pgcrypto() -> Self
pub fn pgcrypto() -> Self
Returns pgcrypto as an extension name.
§Panics
Panics only if the built-in pgcrypto constant is changed to an invalid extension label.
Sourcepub fn citext() -> Self
pub fn citext() -> Self
Returns citext as an extension name.
§Panics
Panics only if the built-in citext constant is changed to an invalid extension label.
Sourcepub fn hstore() -> Self
pub fn hstore() -> Self
Returns hstore as an extension name.
§Panics
Panics only if the built-in hstore constant is changed to an invalid extension label.
Sourcepub fn postgis() -> Self
pub fn postgis() -> Self
Returns postgis as an extension name.
§Panics
Panics only if the built-in postgis constant is changed to an invalid extension label.
Sourcepub fn pg_trgm() -> Self
pub fn pg_trgm() -> Self
Returns pg_trgm as an extension name.
§Panics
Panics only if the built-in pg_trgm constant is changed to an invalid extension label.
Trait Implementations§
Source§impl AsRef<str> for PgExtensionName
impl AsRef<str> for PgExtensionName
Source§impl Clone for PgExtensionName
impl Clone for PgExtensionName
Source§fn clone(&self) -> PgExtensionName
fn clone(&self) -> PgExtensionName
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PgExtensionName
impl Debug for PgExtensionName
Source§impl Display for PgExtensionName
impl Display for PgExtensionName
Source§impl FromStr for PgExtensionName
impl FromStr for PgExtensionName
Source§impl Hash for PgExtensionName
impl Hash for PgExtensionName
Source§impl Ord for PgExtensionName
impl Ord for PgExtensionName
Source§fn cmp(&self, other: &PgExtensionName) -> Ordering
fn cmp(&self, other: &PgExtensionName) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for PgExtensionName
impl PartialEq for PgExtensionName
Source§fn eq(&self, other: &PgExtensionName) -> bool
fn eq(&self, other: &PgExtensionName) -> bool
self and other values to be equal, and is used by ==.