pub struct Name(/* private fields */);Expand description
Validated PostgreSQL configuration parameter name.
Parameter names follow the GUC identifier rules:
- Non-empty.
- First byte: ASCII letter or underscore.
- Subsequent bytes: ASCII alphanumeric, underscore, or dot.
The dot enables namespaced extension parameters such as
pg_stat_statements.track.
Implementations§
Source§impl Name
impl Name
Sourcepub const fn from_static_or_panic(name: &'static str) -> Self
pub const fn from_static_or_panic(name: &'static str) -> Self
Validated parameter name for 'static inputs.
§Panics
Panics at compile time when used in a const context, or at runtime
otherwise, if the name is empty, starts with an invalid character, or
contains any character outside the allowed set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Name
impl<'de> Deserialize<'de> for Name
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Name
impl Ord for Name
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 PartialOrd for Name
impl PartialOrd for Name
impl Eq for Name
impl StructuralPartialEq for Name
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnsafeUnpin for Name
impl UnwindSafe for Name
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