pub struct RestrictKey(/* private fields */);Expand description
Alphanumeric key for the \restrict / \unrestrict psql meta-commands
emitted by pg_dump (CVE-2025-8714).
When set, pg_dump uses this fixed key instead of generating a random one,
making plain-text dump output deterministic across invocations.
Constraints: non-empty, alphanumeric (a-zA-Z0-9), max 63 bytes
(matching the auto-generated key length).
See: https://www.postgresql.org/docs/current/app-pgdump.html
Implementations§
Source§impl RestrictKey
impl RestrictKey
Trait Implementations§
Source§impl AsRef<str> for RestrictKey
impl AsRef<str> for RestrictKey
Source§impl Clone for RestrictKey
impl Clone for RestrictKey
Source§fn clone(&self) -> RestrictKey
fn clone(&self) -> RestrictKey
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 RestrictKey
impl Debug for RestrictKey
Source§impl Display for RestrictKey
impl Display for RestrictKey
Source§impl From<&RestrictKey> for RestrictKey
impl From<&RestrictKey> for RestrictKey
Source§fn from(key: &RestrictKey) -> Self
fn from(key: &RestrictKey) -> Self
Converts to this type from the input type.
Source§impl FromStr for RestrictKey
impl FromStr for RestrictKey
Source§impl PartialEq for RestrictKey
impl PartialEq for RestrictKey
impl Eq for RestrictKey
impl StructuralPartialEq for RestrictKey
Auto Trait Implementations§
impl Freeze for RestrictKey
impl RefUnwindSafe for RestrictKey
impl Send for RestrictKey
impl Sync for RestrictKey
impl Unpin for RestrictKey
impl UnsafeUnpin for RestrictKey
impl UnwindSafe for RestrictKey
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