pub struct ExternalReference {
pub meta: Bo4eMeta,
pub external_ref_name: Option<String>,
pub external_ref_value: Option<String>,
}Expand description
Reference to an external system.
Used to link BO4E objects to identifiers in other systems (e.g., SAP, CRM).
German: ExterneReferenz
§Example
use bo4e_core::com::ExternalReference;
let ext_ref = ExternalReference::new("SAP", "4711");
assert_eq!(ext_ref.external_ref_name, Some("SAP".to_string()));
assert_eq!(ext_ref.external_ref_value, Some("4711".to_string()));Fields§
§meta: Bo4eMetaBO4E metadata
external_ref_name: Option<String>Name of the external system (ExRefName)
external_ref_value: Option<String>Value/ID in the external system (ExRefWert)
Implementations§
Trait Implementations§
Source§impl Bo4eObject for ExternalReference
impl Bo4eObject for ExternalReference
Source§fn type_name_german() -> &'static str
fn type_name_german() -> &'static str
Returns the German type name as used in the
_typ field. Read moreSource§fn type_name_english() -> &'static str
fn type_name_english() -> &'static str
Returns the English type name. Read more
Source§impl Clone for ExternalReference
impl Clone for ExternalReference
Source§fn clone(&self) -> ExternalReference
fn clone(&self) -> ExternalReference
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 ExternalReference
impl Debug for ExternalReference
Source§impl Default for ExternalReference
impl Default for ExternalReference
Source§fn default() -> ExternalReference
fn default() -> ExternalReference
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternalReference
impl<'de> Deserialize<'de> for ExternalReference
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 ExternalReference
impl PartialEq for ExternalReference
Source§impl Serialize for ExternalReference
impl Serialize for ExternalReference
impl StructuralPartialEq for ExternalReference
Auto Trait Implementations§
impl Freeze for ExternalReference
impl RefUnwindSafe for ExternalReference
impl Send for ExternalReference
impl Sync for ExternalReference
impl Unpin for ExternalReference
impl UnwindSafe for ExternalReference
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