pub struct PermissionQuery {
pub tool: String,
pub path: String,
pub action: String,
pub always_patterns: Vec<String>,
pub metadata: Value,
}Expand description
Inputs handed to the permission hook. Shape-compatible with the TS
PermissionQuery (slightly relaxed: metadata is a free-form JSON
object since different tools carry different fields).
Fields§
§tool: String§path: String§action: String§always_patterns: Vec<String>§metadata: ValueTrait Implementations§
Source§impl Clone for PermissionQuery
impl Clone for PermissionQuery
Source§fn clone(&self) -> PermissionQuery
fn clone(&self) -> PermissionQuery
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 moreSource§impl Debug for PermissionQuery
impl Debug for PermissionQuery
Source§impl<'de> Deserialize<'de> for PermissionQuery
impl<'de> Deserialize<'de> for PermissionQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PermissionQuery
impl RefUnwindSafe for PermissionQuery
impl Send for PermissionQuery
impl Sync for PermissionQuery
impl Unpin for PermissionQuery
impl UnsafeUnpin for PermissionQuery
impl UnwindSafe for PermissionQuery
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