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