pub struct AdditionalAttribute {
pub name: String,
pub value: Option<AttributeValue>,
}Expand description
Additional attribute for external system IDs and custom metadata.
This enables interoperability with external systems that need to attach their own identifiers or metadata to BO4E objects.
§Example
use bo4e_core::AdditionalAttribute;
use bo4e_core::additional_attribute::AttributeValue;
let attr = AdditionalAttribute {
name: "sap_id".to_string(),
value: Some(AttributeValue::String("SAP123".to_string())),
};Fields§
§name: StringName/key of the attribute
value: Option<AttributeValue>Value of the attribute (optional)
Implementations§
Trait Implementations§
Source§impl Clone for AdditionalAttribute
impl Clone for AdditionalAttribute
Source§fn clone(&self) -> AdditionalAttribute
fn clone(&self) -> AdditionalAttribute
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 AdditionalAttribute
impl Debug for AdditionalAttribute
Source§impl<'de> Deserialize<'de> for AdditionalAttribute
impl<'de> Deserialize<'de> for AdditionalAttribute
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 PartialEq for AdditionalAttribute
impl PartialEq for AdditionalAttribute
Source§impl Serialize for AdditionalAttribute
impl Serialize for AdditionalAttribute
impl StructuralPartialEq for AdditionalAttribute
Auto Trait Implementations§
impl Freeze for AdditionalAttribute
impl RefUnwindSafe for AdditionalAttribute
impl Send for AdditionalAttribute
impl Sync for AdditionalAttribute
impl Unpin for AdditionalAttribute
impl UnsafeUnpin for AdditionalAttribute
impl UnwindSafe for AdditionalAttribute
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