pub struct LocalFilteringHandle<S> { /* private fields */ }Expand description
An Oso wrapper for using Local Authorization with decentralized data.
Implementations§
Source§impl<S: AsRef<str>> LocalFilteringHandle<S>
impl<S: AsRef<str>> LocalFilteringHandle<S>
Fetches a query that can be run against your database to determine whether an actor can perform an action on a resource.
The query will always return a single record with a single boolean column
named allowed, indicating whether or not the action is permitted.
Example output:
| allowed |
|---|
| true |
Trait Implementations§
Source§impl<S: Clone> Clone for LocalFilteringHandle<S>
impl<S: Clone> Clone for LocalFilteringHandle<S>
Source§fn clone(&self) -> LocalFilteringHandle<S>
fn clone(&self) -> LocalFilteringHandle<S>
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 moreAuto Trait Implementations§
impl<S> Freeze for LocalFilteringHandle<S>where
S: Freeze,
impl<S> !RefUnwindSafe for LocalFilteringHandle<S>
impl<S> Send for LocalFilteringHandle<S>where
S: Send,
impl<S> Sync for LocalFilteringHandle<S>where
S: Sync,
impl<S> Unpin for LocalFilteringHandle<S>where
S: Unpin,
impl<S> !UnwindSafe for LocalFilteringHandle<S>
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