pub struct CreateDeliveryNoteDto {Show 15 fields
pub delivery_number: String,
pub branch_id: Option<Uuid>,
pub customer_id: Uuid,
pub source_so_id: Option<Uuid>,
pub warehouse_id: Uuid,
pub posting_date: NaiveDate,
pub total_cogs: Decimal,
pub cogs_account_id: Uuid,
pub inventory_account_id: Uuid,
pub transfer_id: Option<Uuid>,
pub posting_state: GlPostingState,
pub journal_id: Option<Uuid>,
pub accounting_post_id: Option<Uuid>,
pub posted_at: Option<DateTime<Utc>>,
pub notes: Option<String>,
}Expand description
Request DTO for creating a new DeliveryNote
Used in POST requests to create new entities. Excludes auto-generated fields (id, created_at, updated_at, deleted_at).
Fields§
§delivery_number: String§branch_id: Option<Uuid>§customer_id: Uuid§source_so_id: Option<Uuid>§warehouse_id: Uuid§posting_date: NaiveDate§total_cogs: Decimal§cogs_account_id: Uuid§inventory_account_id: Uuid§transfer_id: Option<Uuid>§posting_state: GlPostingState§journal_id: Option<Uuid>§accounting_post_id: Option<Uuid>§posted_at: Option<DateTime<Utc>>§notes: Option<String>Trait Implementations§
Source§impl Clone for CreateDeliveryNoteDto
impl Clone for CreateDeliveryNoteDto
Source§impl Debug for CreateDeliveryNoteDto
impl Debug for CreateDeliveryNoteDto
Source§impl<'de> Deserialize<'de> for CreateDeliveryNoteDto
impl<'de> Deserialize<'de> for CreateDeliveryNoteDto
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<CreateDeliveryNoteDto> for DeliveryNote
impl From<CreateDeliveryNoteDto> for DeliveryNote
Source§fn from(dto: CreateDeliveryNoteDto) -> Self
fn from(dto: CreateDeliveryNoteDto) -> Self
Converts to this type from the input type.
Source§impl FromCreateDto<CreateDeliveryNoteDto> for DeliveryNote
impl FromCreateDto<CreateDeliveryNoteDto> for DeliveryNote
fn from_create_dto(dto: CreateDeliveryNoteDto) -> ServiceResult<Self>
Auto Trait Implementations§
impl Freeze for CreateDeliveryNoteDto
impl RefUnwindSafe for CreateDeliveryNoteDto
impl Send for CreateDeliveryNoteDto
impl Sync for CreateDeliveryNoteDto
impl Unpin for CreateDeliveryNoteDto
impl UnsafeUnpin for CreateDeliveryNoteDto
impl UnwindSafe for CreateDeliveryNoteDto
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