pub struct PermissionDiff {
pub new_network: Vec<String>,
pub new_filesystem: Vec<String>,
pub new_env_vars: Vec<String>,
pub shell_escalation: bool,
}Expand description
Represents new permissions requested by a plugin version upgrade that were not present in the previously approved permission set.
Used to determine which permissions need user re-approval when a plugin updates its manifest.
Fields§
§new_network: Vec<String>Network hosts requested that were not previously approved.
new_filesystem: Vec<String>Filesystem paths requested that were not previously approved.
new_env_vars: Vec<String>Environment variables requested that were not previously approved.
shell_escalation: boolWhether shell access is being escalated from false to true.
Implementations§
Trait Implementations§
Source§impl Clone for PermissionDiff
impl Clone for PermissionDiff
Source§fn clone(&self) -> PermissionDiff
fn clone(&self) -> PermissionDiff
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 PermissionDiff
impl Debug for PermissionDiff
Source§impl Default for PermissionDiff
impl Default for PermissionDiff
Source§fn default() -> PermissionDiff
fn default() -> PermissionDiff
Returns the “default value” for a type. Read more
Source§impl PartialEq for PermissionDiff
impl PartialEq for PermissionDiff
impl StructuralPartialEq for PermissionDiff
Auto Trait Implementations§
impl Freeze for PermissionDiff
impl RefUnwindSafe for PermissionDiff
impl Send for PermissionDiff
impl Sync for PermissionDiff
impl Unpin for PermissionDiff
impl UnsafeUnpin for PermissionDiff
impl UnwindSafe for PermissionDiff
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