pub enum HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum {
High,
Medium,
Low,
}Expand description
Picks a preset for the OAuth 2.0 Device Authorization Grant user_code length and character set. "high" produces the longest codes (most resistant to brute force); "low" the shortest (easiest for the end user to read and enter). Leave empty to keep Hydra’s default preset. This is an Enterprise feature. This governs the "oauth2.device_authorization.user_code.entropy_preset" setting.
Variants§
Trait Implementations§
impl Copy for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
Source§impl Default for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl Default for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
Source§fn default() -> HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
fn default() -> HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl<'de> Deserialize<'de> for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
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
impl Eq for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
Source§impl Ord for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl Ord for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
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 PartialOrd for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl PartialOrd for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl StructuralPartialEq for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
Auto Trait Implementations§
impl Forget for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl Freeze for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl Move for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl RefUnwindSafe for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl Send for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl Sync for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl Unpin for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl UnsafeUnpin for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl UnwindSafe for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
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