pub struct PgSearchPath { /* private fields */ }Expand description
PostgreSQL search-path metadata.
Implementations§
Source§impl PgSearchPath
impl PgSearchPath
Sourcepub const fn new(schemas: Vec<PgSchemaName>) -> Self
pub const fn new(schemas: Vec<PgSchemaName>) -> Self
Creates a search path from schema names.
Sourcepub fn schemas(&self) -> &[PgSchemaName]
pub fn schemas(&self) -> &[PgSchemaName]
Returns the schema list.
Sourcepub fn first(&self) -> Option<&PgSchemaName>
pub fn first(&self) -> Option<&PgSchemaName>
Returns the first schema in the search path.
Sourcepub fn push(&mut self, schema: PgSchemaName)
pub fn push(&mut self, schema: PgSchemaName)
Appends a schema to the search path.
Sourcepub fn contains(&self, schema: &PgSchemaName) -> bool
pub fn contains(&self, schema: &PgSchemaName) -> bool
Returns true when the search path contains schema.
Trait Implementations§
Source§impl Clone for PgSearchPath
impl Clone for PgSearchPath
Source§fn clone(&self) -> PgSearchPath
fn clone(&self) -> PgSearchPath
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 PgSearchPath
impl Debug for PgSearchPath
Source§impl Default for PgSearchPath
impl Default for PgSearchPath
Source§fn default() -> PgSearchPath
fn default() -> PgSearchPath
Returns the “default value” for a type. Read more
Source§impl Display for PgSearchPath
impl Display for PgSearchPath
Source§impl Hash for PgSearchPath
impl Hash for PgSearchPath
Source§impl Ord for PgSearchPath
impl Ord for PgSearchPath
Source§fn cmp(&self, other: &PgSearchPath) -> Ordering
fn cmp(&self, other: &PgSearchPath) -> 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 PgSearchPath
impl PartialEq for PgSearchPath
Source§fn eq(&self, other: &PgSearchPath) -> bool
fn eq(&self, other: &PgSearchPath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PgSearchPath
impl PartialOrd for PgSearchPath
impl Eq for PgSearchPath
impl StructuralPartialEq for PgSearchPath
Auto Trait Implementations§
impl Freeze for PgSearchPath
impl RefUnwindSafe for PgSearchPath
impl Send for PgSearchPath
impl Sync for PgSearchPath
impl Unpin for PgSearchPath
impl UnsafeUnpin for PgSearchPath
impl UnwindSafe for PgSearchPath
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