#[non_exhaustive]pub struct UpdateRestrictionPolicyOptionalParams {
pub allow_self_lockout: Option<bool>,
}
Expand description
UpdateRestrictionPolicyOptionalParams is a struct for passing parameters to the method RestrictionPoliciesAPI::update_restriction_policy
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.allow_self_lockout: Option<bool>
Allows admins (users with the user_access_manage
permission) to remove their own access from the resource if set to true
. By default, this is set to false
, preventing admins from locking themselves out.
Implementations§
Source§impl UpdateRestrictionPolicyOptionalParams
impl UpdateRestrictionPolicyOptionalParams
Sourcepub fn allow_self_lockout(self, value: bool) -> Self
pub fn allow_self_lockout(self, value: bool) -> Self
Allows admins (users with the user_access_manage
permission) to remove their own access from the resource if set to true
. By default, this is set to false
, preventing admins from locking themselves out.
Trait Implementations§
Source§impl Clone for UpdateRestrictionPolicyOptionalParams
impl Clone for UpdateRestrictionPolicyOptionalParams
Source§fn clone(&self) -> UpdateRestrictionPolicyOptionalParams
fn clone(&self) -> UpdateRestrictionPolicyOptionalParams
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for UpdateRestrictionPolicyOptionalParams
impl Default for UpdateRestrictionPolicyOptionalParams
Source§fn default() -> UpdateRestrictionPolicyOptionalParams
fn default() -> UpdateRestrictionPolicyOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateRestrictionPolicyOptionalParams
impl RefUnwindSafe for UpdateRestrictionPolicyOptionalParams
impl Send for UpdateRestrictionPolicyOptionalParams
impl Sync for UpdateRestrictionPolicyOptionalParams
impl Unpin for UpdateRestrictionPolicyOptionalParams
impl UnwindSafe for UpdateRestrictionPolicyOptionalParams
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