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§
Source§impl Clone for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl Clone for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
Source§fn clone(&self) -> HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
fn clone(&self) -> HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
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 moreimpl 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
Source§fn cmp(
&self,
other: &HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum,
) -> Ordering
fn cmp( &self, other: &HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum, ) -> Ordering
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
Source§impl PartialOrd for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
impl PartialOrd for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
Source§fn partial_cmp(
&self,
other: &HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum,
) -> Option<Ordering>
fn partial_cmp( &self, other: &HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum, ) -> Option<Ordering>
impl StructuralPartialEq for HydraOauth2DeviceAuthorizationUserCodeEntropyPresetEnum
Auto Trait Implementations§
impl Freeze 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