pub struct ObjectType {
pub type_id: String,
pub name: String,
pub business_process: BusinessProcess,
pub lifecycle_states: Vec<ObjectLifecycleState>,
pub relationships: Vec<ObjectRelationshipType>,
pub allowed_activities: Vec<String>,
pub attributes: HashMap<String, AttributeType>,
}Expand description
Definition of a business object type in OCPM.
Fields§
§type_id: StringUnique identifier for the object type (e.g., “purchase_order”)
name: StringHuman-readable name (e.g., “Purchase Order”)
business_process: BusinessProcessBusiness process this type belongs to
lifecycle_states: Vec<ObjectLifecycleState>Lifecycle states for this object type
relationships: Vec<ObjectRelationshipType>Allowed relationships to other object types
allowed_activities: Vec<String>Activities that can occur on this object type
attributes: HashMap<String, AttributeType>Attributes schema (key -> type)
Implementations§
Source§impl ObjectType
impl ObjectType
Sourcepub fn purchase_order() -> Self
pub fn purchase_order() -> Self
Create a Purchase Order object type for P2P.
Sourcepub fn goods_receipt() -> Self
pub fn goods_receipt() -> Self
Create a Goods Receipt object type for P2P.
Sourcepub fn vendor_invoice() -> Self
pub fn vendor_invoice() -> Self
Create a Vendor Invoice object type for P2P.
Sourcepub fn sales_order() -> Self
pub fn sales_order() -> Self
Create a Sales Order object type for O2C.
Sourcepub fn customer_invoice() -> Self
pub fn customer_invoice() -> Self
Create a Customer Invoice object type for O2C.
Trait Implementations§
Source§impl Clone for ObjectType
impl Clone for ObjectType
Source§fn clone(&self) -> ObjectType
fn clone(&self) -> ObjectType
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 ObjectType
impl Debug for ObjectType
Source§impl<'de> Deserialize<'de> for ObjectType
impl<'de> Deserialize<'de> for ObjectType
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 ObjectType
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnwindSafe for ObjectType
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