pub struct MetadataBuilder { /* private fields */ }Expand description
Implementations§
Source§impl MetadataBuilder
impl MetadataBuilder
Sourcepub fn created_at(self, value: DateTime<Utc>) -> Self
pub fn created_at(self, value: DateTime<Utc>) -> Self
Set the created_at timestamp
Sourcepub fn updated_at(self, value: DateTime<Utc>) -> Self
pub fn updated_at(self, value: DateTime<Utc>) -> Self
Set the updated_at timestamp
Sourcepub fn deleted_at(self, value: DateTime<Utc>) -> Self
pub fn deleted_at(self, value: DateTime<Utc>) -> Self
Set the deleted_at timestamp
Sourcepub fn created_by(self, value: Uuid) -> Self
pub fn created_by(self, value: Uuid) -> Self
Set the created_by user ID
Sourcepub fn updated_by(self, value: Uuid) -> Self
pub fn updated_by(self, value: Uuid) -> Self
Set the updated_by user ID
Sourcepub fn deleted_by(self, value: Uuid) -> Self
pub fn deleted_by(self, value: Uuid) -> Self
Set the deleted_by user ID
Sourcepub fn no_created_by(self) -> Self
pub fn no_created_by(self) -> Self
Set created_by to None explicitly
Sourcepub fn no_updated_by(self) -> Self
pub fn no_updated_by(self) -> Self
Set updated_by to None explicitly
Sourcepub fn no_deleted_by(self) -> Self
pub fn no_deleted_by(self) -> Self
Set deleted_by to None explicitly
Trait Implementations§
Source§impl Clone for MetadataBuilder
impl Clone for MetadataBuilder
Source§impl Debug for MetadataBuilder
impl Debug for MetadataBuilder
Auto Trait Implementations§
impl Freeze for MetadataBuilder
impl RefUnwindSafe for MetadataBuilder
impl Send for MetadataBuilder
impl Sync for MetadataBuilder
impl Unpin for MetadataBuilder
impl UnsafeUnpin for MetadataBuilder
impl UnwindSafe for MetadataBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.