pub struct Entity {
pub class_code: String,
pub determiner_code: Option<String>,
pub id: Vec<Ii>,
pub code: Option<Cd>,
pub name: Option<String>,
}Expand description
A physical thing: a person, organization, device, or place.
Fields§
§class_code: StringWhat kind of thing this is (EntityClass: PSN person, ORG
organization, DEV device, PLC place, …).
determiner_code: Option<String>Whether this element names one specific entity (INSTANCE) or a
kind of entity in general (KIND).
id: Vec<Ii>This entity’s own identifiers.
code: Option<Cd>What kind of entity this is, more specifically than classCode
alone says (a device’s model, an organization’s type).
name: Option<String>A name for this entity, when it has one as free text (a person’s or
organization’s name is usually structured in real messages; this
crate reads it as text — see spec/index.md §1).
Implementations§
Source§impl Entity
impl Entity
Sourcepub fn from_element(element: &Element) -> Entity
pub fn from_element(element: &Element) -> Entity
Read an Entity from its XML element, the same way
Act::from_element reads an Act.
Trait Implementations§
impl Eq for Entity
Source§impl FromElement for Entity
impl FromElement for Entity
Source§fn from_element(element: &Element) -> Self
fn from_element(element: &Element) -> Self
Read
element into Self. Never fails — see the module
documentation for why there is no Result here.impl StructuralPartialEq for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnsafeUnpin for Entity
impl UnwindSafe for Entity
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