pub struct UserBuilder { /* private fields */ }Implementations§
Source§impl UserBuilder
impl UserBuilder
pub fn id(self, id: UserId) -> Self
pub fn name(self, name: Option<String>) -> Self
pub fn email(self, email: String) -> Self
pub fn email_verified_at(self, email_verified_at: Option<DateTime<Utc>>) -> Self
pub fn created_at(self, created_at: DateTime<Utc>) -> Self
pub fn updated_at(self, updated_at: DateTime<Utc>) -> Self
pub fn build(self) -> Result<User, Error>
Trait Implementations§
Source§impl Default for UserBuilder
impl Default for UserBuilder
Source§fn default() -> UserBuilder
fn default() -> UserBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UserBuilder
impl RefUnwindSafe for UserBuilder
impl Send for UserBuilder
impl Sync for UserBuilder
impl Unpin for UserBuilder
impl UnwindSafe for UserBuilder
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