pub struct LocationBuilder { /* private fields */ }Expand description
Builder for Location entity
Provides a fluent API for constructing Location instances. System fields (id, metadata, timestamps) are auto-initialized.
Implementations§
Source§impl LocationBuilder
impl LocationBuilder
Sourcepub fn complete_name(self, value: String) -> Self
pub fn complete_name(self, value: String) -> Self
Set the complete_name field (required)
Sourcepub fn usage(self, value: LocationUsage) -> Self
pub fn usage(self, value: LocationUsage) -> Self
Set the usage field (default: LocationUsage::default())
Sourcepub fn location_id(self, value: Uuid) -> Self
pub fn location_id(self, value: Uuid) -> Self
Set the location_id field (optional)
Sourcepub fn parent_path(self, value: String) -> Self
pub fn parent_path(self, value: String) -> Self
Set the parent_path field (required)
Sourcepub fn warehouse_id(self, value: Uuid) -> Self
pub fn warehouse_id(self, value: Uuid) -> Self
Set the warehouse_id field (optional)
Sourcepub fn cyclic_inventory_frequency(self, value: i32) -> Self
pub fn cyclic_inventory_frequency(self, value: i32) -> Self
Set the cyclic_inventory_frequency field (default: 0)
Sourcepub fn last_inventory_date(self, value: NaiveDate) -> Self
pub fn last_inventory_date(self, value: NaiveDate) -> Self
Set the last_inventory_date field (optional)
Sourcepub fn next_inventory_date(self, value: NaiveDate) -> Self
pub fn next_inventory_date(self, value: NaiveDate) -> Self
Set the next_inventory_date field (optional)
Sourcepub fn valuation_account_id(self, value: Uuid) -> Self
pub fn valuation_account_id(self, value: Uuid) -> Self
Set the valuation_account_id field (optional)
Sourcepub fn storage_category_id(self, value: Uuid) -> Self
pub fn storage_category_id(self, value: Uuid) -> Self
Set the storage_category_id field (optional)
Trait Implementations§
Source§impl Clone for LocationBuilder
impl Clone for LocationBuilder
Source§impl Debug for LocationBuilder
impl Debug for LocationBuilder
Auto Trait Implementations§
impl Freeze for LocationBuilder
impl RefUnwindSafe for LocationBuilder
impl Send for LocationBuilder
impl Sync for LocationBuilder
impl Unpin for LocationBuilder
impl UnsafeUnpin for LocationBuilder
impl UnwindSafe for LocationBuilder
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 more