#[non_exhaustive]pub struct ManagedSettings {
pub permissions: Option<ManagedSettingsPermissions>,
}Expand description
Managed-settings layer injected at session startup. Currently carries only a
permissions object.
This layer is startup-only and is not persisted with the session. It must be
re-supplied on resume to remain in effect; omitting it on resume clears the
previously injected layer. It can be combined with
SessionConfig::enable_managed_settings. Older runtimes may ignore this
additive field, so hosts must not rely on injected policy until they ship a
compatible runtime.
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.permissions: Option<ManagedSettingsPermissions>Permission rules for this managed-settings layer.
Implementations§
Source§impl ManagedSettings
impl ManagedSettings
Sourcepub fn with_permissions(self, permissions: ManagedSettingsPermissions) -> Self
pub fn with_permissions(self, permissions: ManagedSettingsPermissions) -> Self
Sets the permissions-only managed policy.
Trait Implementations§
Source§impl Clone for ManagedSettings
impl Clone for ManagedSettings
Source§fn clone(&self) -> ManagedSettings
fn clone(&self) -> ManagedSettings
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 ManagedSettings
impl Debug for ManagedSettings
Source§impl Default for ManagedSettings
impl Default for ManagedSettings
Source§fn default() -> ManagedSettings
fn default() -> ManagedSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ManagedSettings
impl<'de> Deserialize<'de> for ManagedSettings
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
Source§impl PartialEq for ManagedSettings
impl PartialEq for ManagedSettings
Source§impl Serialize for ManagedSettings
impl Serialize for ManagedSettings
impl StructuralPartialEq for ManagedSettings
Auto Trait Implementations§
impl Freeze for ManagedSettings
impl RefUnwindSafe for ManagedSettings
impl Send for ManagedSettings
impl Sync for ManagedSettings
impl Unpin for ManagedSettings
impl UnsafeUnpin for ManagedSettings
impl UnwindSafe for ManagedSettings
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