pub struct CreateTransferDto {Show 15 fields
pub name: String,
pub origin: Option<String>,
pub note: Option<String>,
pub priority: Priority,
pub picking_type_id: Uuid,
pub location_id: Uuid,
pub location_dest_id: Uuid,
pub partner_id: Option<Uuid>,
pub move_type: MoveType,
pub scheduled_date: DateTime<Utc>,
pub date_done: Option<DateTime<Utc>>,
pub is_locked: bool,
pub backorder_id: Option<Uuid>,
pub return_id: Option<Uuid>,
pub batch_id: Option<Uuid>,
}Expand description
Request DTO for creating a new Transfer
Used in POST requests to create new entities. Excludes auto-generated fields (id, created_at, updated_at, deleted_at).
Fields§
§name: String§origin: Option<String>§note: Option<String>§priority: Priority§picking_type_id: Uuid§location_id: Uuid§location_dest_id: Uuid§partner_id: Option<Uuid>§move_type: MoveType§scheduled_date: DateTime<Utc>§date_done: Option<DateTime<Utc>>§is_locked: bool§backorder_id: Option<Uuid>§return_id: Option<Uuid>§batch_id: Option<Uuid>Trait Implementations§
Source§impl Clone for CreateTransferDto
impl Clone for CreateTransferDto
Source§impl Debug for CreateTransferDto
impl Debug for CreateTransferDto
Source§impl<'de> Deserialize<'de> for CreateTransferDto
impl<'de> Deserialize<'de> for CreateTransferDto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CreateTransferDto> for Transfer
impl From<CreateTransferDto> for Transfer
Source§fn from(dto: CreateTransferDto) -> Self
fn from(dto: CreateTransferDto) -> Self
Converts to this type from the input type.
Source§impl FromCreateDto<CreateTransferDto> for Transfer
impl FromCreateDto<CreateTransferDto> for Transfer
fn from_create_dto(dto: CreateTransferDto) -> ServiceResult<Self>
Auto Trait Implementations§
impl Freeze for CreateTransferDto
impl RefUnwindSafe for CreateTransferDto
impl Send for CreateTransferDto
impl Sync for CreateTransferDto
impl Unpin for CreateTransferDto
impl UnsafeUnpin for CreateTransferDto
impl UnwindSafe for CreateTransferDto
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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