pub struct CrossProcessLink {
pub material_id: String,
pub source_process: String,
pub source_document_id: String,
pub target_process: String,
pub target_document_id: String,
pub link_type: CrossProcessLinkType,
pub quantity: Decimal,
pub link_date: NaiveDate,
}Expand description
Cross-process link connecting P2P and O2C via inventory.
Fields§
§material_id: StringMaterial ID linking the processes
source_process: StringSource process (e.g., P2P)
source_document_id: StringSource document ID
target_process: StringTarget process (e.g., O2C)
target_document_id: StringTarget document ID
link_type: CrossProcessLinkTypeLink type
quantity: DecimalQuantity involved
link_date: NaiveDateLink date
Implementations§
Source§impl CrossProcessLink
impl CrossProcessLink
Sourcepub fn new(
material_id: impl Into<String>,
source_process: impl Into<String>,
source_document_id: impl Into<String>,
target_process: impl Into<String>,
target_document_id: impl Into<String>,
link_type: CrossProcessLinkType,
quantity: Decimal,
link_date: NaiveDate,
) -> Self
pub fn new( material_id: impl Into<String>, source_process: impl Into<String>, source_document_id: impl Into<String>, target_process: impl Into<String>, target_document_id: impl Into<String>, link_type: CrossProcessLinkType, quantity: Decimal, link_date: NaiveDate, ) -> Self
Create a new cross-process link.
Trait Implementations§
Source§impl Clone for CrossProcessLink
impl Clone for CrossProcessLink
Source§fn clone(&self) -> CrossProcessLink
fn clone(&self) -> CrossProcessLink
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CrossProcessLink
impl Debug for CrossProcessLink
Source§impl<'de> Deserialize<'de> for CrossProcessLink
impl<'de> Deserialize<'de> for CrossProcessLink
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
Auto Trait Implementations§
impl Freeze for CrossProcessLink
impl RefUnwindSafe for CrossProcessLink
impl Send for CrossProcessLink
impl Sync for CrossProcessLink
impl Unpin for CrossProcessLink
impl UnwindSafe for CrossProcessLink
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