pub struct TransferBuilder { /* private fields */ }Expand description
Builder for Transfer entity
Provides a fluent API for constructing Transfer instances. System fields (id, metadata, timestamps) are auto-initialized.
Implementations§
Source§impl TransferBuilder
impl TransferBuilder
Sourcepub fn priority(self, value: Priority) -> Self
pub fn priority(self, value: Priority) -> Self
Set the priority field (default: Priority::default())
Sourcepub fn picking_type_id(self, value: Uuid) -> Self
pub fn picking_type_id(self, value: Uuid) -> Self
Set the picking_type_id field (required)
Sourcepub fn location_id(self, value: Uuid) -> Self
pub fn location_id(self, value: Uuid) -> Self
Set the location_id field (required)
Sourcepub fn location_dest_id(self, value: Uuid) -> Self
pub fn location_dest_id(self, value: Uuid) -> Self
Set the location_dest_id field (required)
Sourcepub fn partner_id(self, value: Uuid) -> Self
pub fn partner_id(self, value: Uuid) -> Self
Set the partner_id field (optional)
Sourcepub fn move_type(self, value: MoveType) -> Self
pub fn move_type(self, value: MoveType) -> Self
Set the move_type field (default: MoveType::default())
Sourcepub fn scheduled_date(self, value: DateTime<Utc>) -> Self
pub fn scheduled_date(self, value: DateTime<Utc>) -> Self
Set the scheduled_date field (default: Utc::now())
Sourcepub fn state(self, value: TransferState) -> Self
pub fn state(self, value: TransferState) -> Self
Set the state field (default: TransferState::default())
Sourcepub fn backorder_id(self, value: Uuid) -> Self
pub fn backorder_id(self, value: Uuid) -> Self
Set the backorder_id field (optional)
Trait Implementations§
Source§impl Clone for TransferBuilder
impl Clone for TransferBuilder
Source§impl Debug for TransferBuilder
impl Debug for TransferBuilder
Auto Trait Implementations§
impl Freeze for TransferBuilder
impl RefUnwindSafe for TransferBuilder
impl Send for TransferBuilder
impl Sync for TransferBuilder
impl Unpin for TransferBuilder
impl UnsafeUnpin for TransferBuilder
impl UnwindSafe for TransferBuilder
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