pub struct PasswordGeneratorRequest {
pub lowercase: bool,
pub uppercase: bool,
pub numbers: bool,
pub special: bool,
pub length: u8,
pub avoid_ambiguous: bool,
pub min_lowercase: Option<u8>,
pub min_uppercase: Option<u8>,
pub min_number: Option<u8>,
pub min_special: Option<u8>,
}Expand description
Password generator request options.
Fields§
§lowercase: boolInclude lowercase characters (a-z).
uppercase: boolInclude uppercase characters (A-Z).
numbers: boolInclude numbers (0-9).
special: boolInclude special characters: ! @ # $ % ^ & *
length: u8The length of the generated password. Note that the password length must be greater than the sum of all the minimums.
avoid_ambiguous: boolWhen set to true, the generated password will not contain ambiguous characters. The ambiguous characters are: I, O, l, 0, 1
min_lowercase: Option<u8>The minimum number of lowercase characters in the generated password. When set, the value must be between 1 and 9. This value is ignored if lowercase is false.
min_uppercase: Option<u8>The minimum number of uppercase characters in the generated password. When set, the value must be between 1 and 9. This value is ignored if uppercase is false.
min_number: Option<u8>The minimum number of numbers in the generated password. When set, the value must be between 1 and 9. This value is ignored if numbers is false.
min_special: Option<u8>The minimum number of special characters in the generated password. When set, the value must be between 1 and 9. This value is ignored if special is false.
Trait Implementations§
Source§impl Debug for PasswordGeneratorRequest
impl Debug for PasswordGeneratorRequest
Source§impl Default for PasswordGeneratorRequest
impl Default for PasswordGeneratorRequest
Source§impl<'de> Deserialize<'de> for PasswordGeneratorRequest
impl<'de> Deserialize<'de> for PasswordGeneratorRequest
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>,
Source§impl JsonSchema for PasswordGeneratorRequest
impl JsonSchema for PasswordGeneratorRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for PasswordGeneratorRequest
impl RefUnwindSafe for PasswordGeneratorRequest
impl Send for PasswordGeneratorRequest
impl Sync for PasswordGeneratorRequest
impl Unpin for PasswordGeneratorRequest
impl UnwindSafe for PasswordGeneratorRequest
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more