pub struct Contributor {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub type_: Option<CodeDt>,
pub name: Option<StringDt>,
pub contact: Option<Vec<ContactDetail>>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
type_: Option<CodeDt>
author | editor | reviewer | endorser
name: Option<StringDt>
Who contributed the content
contact: Option<Vec<ContactDetail>>
Contact details of the contributor
Implementations§
Source§impl Contributor
impl Contributor
pub fn set_type_<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_name<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_contact(self, v: Vec<ContactDetail>) -> Self
pub fn add_contact(self, v: ContactDetail) -> Self
Trait Implementations§
Source§impl Clone for Contributor
impl Clone for Contributor
Source§fn clone(&self) -> Contributor
fn clone(&self) -> Contributor
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 Compare for Contributor
impl Compare for Contributor
Source§impl Convert for Contributor
impl Convert for Contributor
fn to_integer(&self) -> Result<Integer>
fn to_decimal(&self) -> Result<Decimal>
fn to_strings(&self) -> Result<String>
fn to_datetime(&self) -> Result<DateTime>
fn to_boolean(&self) -> Result<Boolean>
Source§impl Debug for Contributor
impl Debug for Contributor
Source§impl Default for Contributor
impl Default for Contributor
Source§fn default() -> Contributor
fn default() -> Contributor
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Contributor
impl<'de> Deserialize<'de> for Contributor
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
Source§impl Element for Contributor
impl Element for Contributor
Source§impl Executor for Contributor
impl Executor for Contributor
fn element(&self, symbol: &String, index: &Option<usize>) -> Result<Collection>
fn to_collection(&self, index: &Option<usize>) -> Collection
fn child(&self, _index: usize) -> Result<Collection>
Source§impl Serialize for Contributor
impl Serialize for Contributor
impl DataType for Contributor
Auto Trait Implementations§
impl Freeze for Contributor
impl RefUnwindSafe for Contributor
impl Send for Contributor
impl Sync for Contributor
impl Unpin for Contributor
impl UnwindSafe for Contributor
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