pub struct UpdateRegistrationSettingsRequest {
pub mode: RegistrationMode,
pub token: Option<SecretString>,
pub require_token_for_oidc: Option<bool>,
}Fields§
§mode: RegistrationMode§token: Option<SecretString>Required when mode is invite. The plaintext token will be hashed before storage.
require_token_for_oidc: Option<bool>Whether OIDC users also need a registration token (only relevant in invite mode).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UpdateRegistrationSettingsRequest
impl<'de> Deserialize<'de> for UpdateRegistrationSettingsRequest
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 UpdateRegistrationSettingsRequest
impl RefUnwindSafe for UpdateRegistrationSettingsRequest
impl Send for UpdateRegistrationSettingsRequest
impl Sync for UpdateRegistrationSettingsRequest
impl Unpin for UpdateRegistrationSettingsRequest
impl UnsafeUnpin for UpdateRegistrationSettingsRequest
impl UnwindSafe for UpdateRegistrationSettingsRequest
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