#[non_exhaustive]pub enum DisableFlag {
Disable,
Other(String),
}Expand description
The one value of the disable* keys that turn a feature off
(permissions.disableBypassPermissionsMode, disableAutoMode,
disableDeepLinkRegistration).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for DisableFlag
impl AsRef<str> for DisableFlag
Source§impl Clone for DisableFlag
impl Clone for DisableFlag
Source§impl Debug for DisableFlag
impl Debug for DisableFlag
Source§impl<'de> Deserialize<'de> for DisableFlag
impl<'de> Deserialize<'de> for DisableFlag
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DisableFlag
impl Display for DisableFlag
impl Eq for DisableFlag
Source§impl From<&str> for DisableFlag
impl From<&str> for DisableFlag
Source§impl From<String> for DisableFlag
impl From<String> for DisableFlag
Source§impl Hash for DisableFlag
impl Hash for DisableFlag
Source§impl Ord for DisableFlag
impl Ord for DisableFlag
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DisableFlag
impl PartialEq for DisableFlag
Source§impl PartialOrd for DisableFlag
impl PartialOrd for DisableFlag
Source§impl Serialize for DisableFlag
impl Serialize for DisableFlag
impl StructuralPartialEq for DisableFlag
Auto Trait Implementations§
impl Forget for DisableFlag
impl Freeze for DisableFlag
impl Move for DisableFlag
impl RefUnwindSafe for DisableFlag
impl Send for DisableFlag
impl Sync for DisableFlag
impl Unpin for DisableFlag
impl UnsafeUnpin for DisableFlag
impl UnwindSafe for DisableFlag
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