#[non_exhaustive]pub struct SuperuserParametersBuilder { /* private fields */ }Expand description
A builder for SuperuserParameters.
Implementations§
source§impl SuperuserParametersBuilder
impl SuperuserParametersBuilder
sourcepub fn email_address(self, input: impl Into<String>) -> Self
pub fn email_address(self, input: impl Into<String>) -> Self
The email address of the superuser.
This field is required.sourcepub fn set_email_address(self, input: Option<String>) -> Self
pub fn set_email_address(self, input: Option<String>) -> Self
The email address of the superuser.
sourcepub fn get_email_address(&self) -> &Option<String>
pub fn get_email_address(&self) -> &Option<String>
The email address of the superuser.
sourcepub fn first_name(self, input: impl Into<String>) -> Self
pub fn first_name(self, input: impl Into<String>) -> Self
The first name of the superuser.
This field is required.sourcepub fn set_first_name(self, input: Option<String>) -> Self
pub fn set_first_name(self, input: Option<String>) -> Self
The first name of the superuser.
sourcepub fn get_first_name(&self) -> &Option<String>
pub fn get_first_name(&self) -> &Option<String>
The first name of the superuser.
sourcepub fn last_name(self, input: impl Into<String>) -> Self
pub fn last_name(self, input: impl Into<String>) -> Self
The last name of the superuser.
This field is required.sourcepub fn set_last_name(self, input: Option<String>) -> Self
pub fn set_last_name(self, input: Option<String>) -> Self
The last name of the superuser.
sourcepub fn get_last_name(&self) -> &Option<String>
pub fn get_last_name(&self) -> &Option<String>
The last name of the superuser.
sourcepub fn build(self) -> Result<SuperuserParameters, BuildError>
pub fn build(self) -> Result<SuperuserParameters, BuildError>
Consumes the builder and constructs a SuperuserParameters.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SuperuserParametersBuilder
impl Clone for SuperuserParametersBuilder
source§fn clone(&self) -> SuperuserParametersBuilder
fn clone(&self) -> SuperuserParametersBuilder
Returns a copy 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 SuperuserParametersBuilder
impl Debug for SuperuserParametersBuilder
source§impl Default for SuperuserParametersBuilder
impl Default for SuperuserParametersBuilder
source§fn default() -> SuperuserParametersBuilder
fn default() -> SuperuserParametersBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SuperuserParametersBuilder
impl PartialEq for SuperuserParametersBuilder
source§fn eq(&self, other: &SuperuserParametersBuilder) -> bool
fn eq(&self, other: &SuperuserParametersBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for SuperuserParametersBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SuperuserParametersBuilder
impl Send for SuperuserParametersBuilder
impl Sync for SuperuserParametersBuilder
impl Unpin for SuperuserParametersBuilder
impl UnwindSafe for SuperuserParametersBuilder
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> 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>
Creates a shared type from an unshared type.