pub enum CreateAdminSessionRequest {
Password {
username: Box<str>,
password: SecretString,
},
Nostr {
challenge_id: LoginChallengeId,
challenge: SecretString,
event: Box<str>,
},
}Expand description
A human proof that can create one opaque server-side browser session.
This type intentionally has no Debug implementation because the password
variant contains a raw secret.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreateAdminSessionRequest
impl<'de> Deserialize<'de> for CreateAdminSessionRequest
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
Auto Trait Implementations§
impl Freeze for CreateAdminSessionRequest
impl RefUnwindSafe for CreateAdminSessionRequest
impl Send for CreateAdminSessionRequest
impl Sync for CreateAdminSessionRequest
impl Unpin for CreateAdminSessionRequest
impl UnsafeUnpin for CreateAdminSessionRequest
impl UnwindSafe for CreateAdminSessionRequest
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