pub struct AuthSchema<'a> { /* private fields */ }Expand description
Schema view for validated table and field names.
Implementations§
Source§impl<'a> AuthSchema<'a>
impl<'a> AuthSchema<'a>
pub fn new(schema: &'a DbSchema) -> Self
Sourcepub fn table(
&self,
logical_name: &str,
) -> Result<SchemaTable<'a>, RustAuthError>
pub fn table( &self, logical_name: &str, ) -> Result<SchemaTable<'a>, RustAuthError>
Resolve a logical table name and return a handle for validation/mapping.
Sourcepub fn try_table(&self, logical_name: &str) -> Option<SchemaTable<'a>>
pub fn try_table(&self, logical_name: &str) -> Option<SchemaTable<'a>>
Resolve a logical table when it exists in the merged schema.
Trait Implementations§
Source§impl<'a> Clone for AuthSchema<'a>
impl<'a> Clone for AuthSchema<'a>
Source§fn clone(&self) -> AuthSchema<'a>
fn clone(&self) -> AuthSchema<'a>
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 moreimpl<'a> Copy for AuthSchema<'a>
Auto Trait Implementations§
impl<'a> Freeze for AuthSchema<'a>
impl<'a> RefUnwindSafe for AuthSchema<'a>
impl<'a> Send for AuthSchema<'a>
impl<'a> Sync for AuthSchema<'a>
impl<'a> Unpin for AuthSchema<'a>
impl<'a> UnsafeUnpin for AuthSchema<'a>
impl<'a> UnwindSafe for AuthSchema<'a>
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