pub struct PermissionsModifyRulesParams {
pub add: Option<Vec<PermissionRule>>,
pub remove: Option<Vec<PermissionRule>>,
pub remove_all: Option<bool>,
pub scope: PermissionsModifyRulesScope,
}Expand description
Scope and add/remove instructions for modifying session- or location-scoped permission rules.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§add: Option<Vec<PermissionRule>>Rules to add to the scope. Applied before remove/removeAll.
remove: Option<Vec<PermissionRule>>Specific rules to remove from the scope. Ignored when removeAll is true.
remove_all: Option<bool>When true, removes every rule currently in the scope (after any add is applied). Useful for clearing the location scope wholesale.
scope: PermissionsModifyRulesScopeWhether the change applies to ephemeral session-scoped rules (cleared at session end) or to location-scoped rules persisted via the location-permissions config file.
Trait Implementations§
Source§impl Clone for PermissionsModifyRulesParams
impl Clone for PermissionsModifyRulesParams
Source§fn clone(&self) -> PermissionsModifyRulesParams
fn clone(&self) -> PermissionsModifyRulesParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PermissionsModifyRulesParams
impl Debug for PermissionsModifyRulesParams
Source§impl Default for PermissionsModifyRulesParams
impl Default for PermissionsModifyRulesParams
Source§fn default() -> PermissionsModifyRulesParams
fn default() -> PermissionsModifyRulesParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PermissionsModifyRulesParams
impl<'de> Deserialize<'de> for PermissionsModifyRulesParams
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 PermissionsModifyRulesParams
impl RefUnwindSafe for PermissionsModifyRulesParams
impl Send for PermissionsModifyRulesParams
impl Sync for PermissionsModifyRulesParams
impl Unpin for PermissionsModifyRulesParams
impl UnsafeUnpin for PermissionsModifyRulesParams
impl UnwindSafe for PermissionsModifyRulesParams
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