pub struct PolicyCtx {
pub user_id: Option<String>,
pub metadata: HashMap<String, String>,
}Expand description
Context passed to policy (e.g. caller identity, run metadata).
Fields§
§user_id: Option<String>§metadata: HashMap<String, String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for PolicyCtx
impl RefUnwindSafe for PolicyCtx
impl Send for PolicyCtx
impl Sync for PolicyCtx
impl Unpin for PolicyCtx
impl UnsafeUnpin for PolicyCtx
impl UnwindSafe for PolicyCtx
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