pub struct AdminSetupScheme {
pub first_name: String,
pub last_name: String,
pub username: String,
pub pwd: String,
}Expand description
Payload for creating the initial administrator account.
This struct is sent to the /api/setup-admin endpoint to create the first admin user
when no administrators exist in the system. It carries the necessary information
for the new admin’s profile and credentials.
§Fields
first_name: The first name of the administrator.last_name: The last name of the administrator.username: The unique username for the administrator’s login.pwd: The password for the administrator’s account. This will be hashed on the backend.
Fields§
§first_name: String§last_name: String§username: String§pwd: StringTrait Implementations§
Source§impl Clone for AdminSetupScheme
impl Clone for AdminSetupScheme
Source§fn clone(&self) -> AdminSetupScheme
fn clone(&self) -> AdminSetupScheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AdminSetupScheme
impl Debug for AdminSetupScheme
Source§impl<'de> Deserialize<'de> for AdminSetupScheme
impl<'de> Deserialize<'de> for AdminSetupScheme
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
Source§impl PartialEq for AdminSetupScheme
impl PartialEq for AdminSetupScheme
Source§impl Serialize for AdminSetupScheme
impl Serialize for AdminSetupScheme
impl StructuralPartialEq for AdminSetupScheme
Auto Trait Implementations§
impl Freeze for AdminSetupScheme
impl RefUnwindSafe for AdminSetupScheme
impl Send for AdminSetupScheme
impl Sync for AdminSetupScheme
impl Unpin for AdminSetupScheme
impl UnwindSafe for AdminSetupScheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere
T: DeserializeOwned,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.