pub enum Gen {
Password {
len: u32,
symbols: bool,
},
User,
Alnum(u32),
RealBase64(u32),
Hex(u32),
Jwt(&'static str),
}Expand description
How a generated value is made.
Variants§
Password
Letters and digits; symbols when Coolify’s has punctuation too.
User
Alnum(u32)
BASE64: despite the name, letters and digits.
RealBase64(u32)
REALBASE64: base64 of this many random bytes.
Hex(u32)
HEX: this many hexadecimal characters.
Jwt(&'static str)
A Supabase JWT with this role, signed with SERVICE_PASSWORD_JWT.
Trait Implementations§
impl Eq for Gen
impl StructuralPartialEq for Gen
Auto Trait Implementations§
impl Freeze for Gen
impl RefUnwindSafe for Gen
impl Send for Gen
impl Sync for Gen
impl Unpin for Gen
impl UnsafeUnpin for Gen
impl UnwindSafe for Gen
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.