pub struct EntityView {
pub id: EntityId,
pub name: Option<String>,
pub types: Vec<TypeName>,
pub deleted: bool,
pub fields: Vec<FieldView>,
}Expand description
An entity as a person sees it: its name, types, and the values of its fields.
Fields§
§id: EntityIdThe entity, or of entities merged together, the one they were merged into.
name: Option<String>The name to show for it, if it has one.
types: Vec<TypeName>Its types.
deleted: boolWhether it is deleted.
fields: Vec<FieldView>The fields with values, ordered by name, without the fields of its types and of its own record.
Implementations§
Source§impl EntityView
impl EntityView
Sourcepub fn values(&self, field: &FieldName) -> &[ShownValue]
pub fn values(&self, field: &FieldName) -> &[ShownValue]
The values that a field shows, in the order to show them; none if it shows none.
Trait Implementations§
Source§impl Clone for EntityView
impl Clone for EntityView
Source§impl Debug for EntityView
impl Debug for EntityView
impl Eq for EntityView
Source§impl PartialEq for EntityView
impl PartialEq for EntityView
impl StructuralPartialEq for EntityView
Auto Trait Implementations§
impl Forget for EntityView
impl Freeze for EntityView
impl Move for EntityView
impl RefUnwindSafe for EntityView
impl Send for EntityView
impl Sync for EntityView
impl Unpin for EntityView
impl UnsafeUnpin for EntityView
impl UnwindSafe for EntityView
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.