pub struct OsoWithContext<'a> { /* private fields */ }Implementations§
Source§impl OsoWithContext<'_>
impl OsoWithContext<'_>
pub async fn actions( &self, actor: impl Into<Value<'_>>, resource: impl Into<Value<'_>>, ) -> Result<Vec<String>, Error>
pub async fn list( &self, actor: impl Into<Value<'_>>, action: &str, resource_type: &str, ) -> Result<Vec<String>, Error>
Sourcepub async fn query(&self, fact: &Fact<'_>) -> Result<Vec<Fact<'static>>, Error>
pub async fn query(&self, fact: &Fact<'_>) -> Result<Vec<Fact<'static>>, Error>
Query Oso Cloud for any predicate and any combination of concrete and wildcard arguments.
Unlike oso.get, which only lists facts you’ve added, you can use oso.query to list
derived information about any rule in your policy.
Auto Trait Implementations§
impl<'a> Freeze for OsoWithContext<'a>
impl<'a> !RefUnwindSafe for OsoWithContext<'a>
impl<'a> Send for OsoWithContext<'a>
impl<'a> Sync for OsoWithContext<'a>
impl<'a> Unpin for OsoWithContext<'a>
impl<'a> !UnwindSafe for OsoWithContext<'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