pub struct SimpleName {
pub name: MultilingualString,
pub location: Option<Place>,
pub short_name: Option<String>,
}Expand description
A simple name is just a string, with an optional location.
Fields§
§name: MultilingualStringInstitutional or organization name.
location: Option<Place>Geographic place associated with the name.
short_name: Option<String>Short form of the name (e.g., abbreviation or shortened form).
Trait Implementations§
Source§impl Clone for SimpleName
impl Clone for SimpleName
Source§fn clone(&self) -> SimpleName
fn clone(&self) -> SimpleName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SimpleName
impl Debug for SimpleName
Source§impl<'de> Deserialize<'de> for SimpleName
impl<'de> Deserialize<'de> for SimpleName
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimpleName, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SimpleName, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SimpleName
impl PartialEq for SimpleName
Source§fn eq(&self, other: &SimpleName) -> bool
fn eq(&self, other: &SimpleName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SimpleName
impl Serialize for SimpleName
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SimpleName
Auto Trait Implementations§
impl Freeze for SimpleName
impl RefUnwindSafe for SimpleName
impl Send for SimpleName
impl Sync for SimpleName
impl Unpin for SimpleName
impl UnsafeUnpin for SimpleName
impl UnwindSafe for SimpleName
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