pub struct EntityName {
pub name: Option<String>,
pub date_start: Option<Date>,
pub date_end: Option<Date>,
pub meta: NameMeta,
}Expand description
An entity, e.g. research institution, company, co-op…
At least one field must be provided.
Fields§
§name: Option<String>The name of the entity.
date_start: Option<Date>The entity’s starting date.
For example, a conference.
date_end: Option<Date>The entity’s ending date.
For example, a conference.
meta: NameMetaCommon author metadata fields.
Trait Implementations§
Source§impl Clone for EntityName
impl Clone for EntityName
Source§fn clone(&self) -> EntityName
fn clone(&self) -> EntityName
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 EntityName
impl Debug for EntityName
Source§impl Default for EntityName
impl Default for EntityName
Source§fn default() -> EntityName
fn default() -> EntityName
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EntityName
impl<'de> Deserialize<'de> for EntityName
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 EntityName
impl PartialEq for EntityName
Source§impl Serialize for EntityName
impl Serialize for EntityName
impl Eq for EntityName
impl StructuralPartialEq for EntityName
Auto Trait Implementations§
impl Freeze for EntityName
impl RefUnwindSafe for EntityName
impl Send for EntityName
impl Sync for EntityName
impl Unpin for EntityName
impl UnwindSafe for EntityName
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
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.