pub struct ArticleAuthor {
pub id: Option<u64>,
pub full_name: Option<String>,
pub name: Option<String>,
pub url_name: Option<String>,
pub orcid_id: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
Author representation returned on detailed article payloads.
Fields§
§id: Option<u64>Author identifier, when present.
full_name: Option<String>Full display name, when present.
name: Option<String>Alternate display name field, when present.
url_name: Option<String>Figshare URL slug, when present.
orcid_id: Option<String>ORCID identifier, when present.
extra: BTreeMap<String, Value>Additional untyped fields preserved for forward compatibility.
Implementations§
Source§impl ArticleAuthor
impl ArticleAuthor
Sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
Returns the best display name available for the author.
Trait Implementations§
Source§impl Clone for ArticleAuthor
impl Clone for ArticleAuthor
Source§fn clone(&self) -> ArticleAuthor
fn clone(&self) -> ArticleAuthor
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 ArticleAuthor
impl Debug for ArticleAuthor
Source§impl Default for ArticleAuthor
impl Default for ArticleAuthor
Source§fn default() -> ArticleAuthor
fn default() -> ArticleAuthor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArticleAuthor
impl<'de> Deserialize<'de> for ArticleAuthor
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 ArticleAuthor
impl PartialEq for ArticleAuthor
Source§impl Serialize for ArticleAuthor
impl Serialize for ArticleAuthor
impl StructuralPartialEq for ArticleAuthor
Auto Trait Implementations§
impl Freeze for ArticleAuthor
impl RefUnwindSafe for ArticleAuthor
impl Send for ArticleAuthor
impl Sync for ArticleAuthor
impl Unpin for ArticleAuthor
impl UnsafeUnpin for ArticleAuthor
impl UnwindSafe for ArticleAuthor
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