Struct fhir_rs::datatype::complex::ContactDetail
source · pub struct ContactDetail {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub name: Option<StringDt>,
pub telecom: Option<Vec<ContactPoint>>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
name: Option<StringDt>
Name of an individual to contact
telecom: Option<Vec<ContactPoint>>
Contact details for individual or organization
Implementations§
source§impl ContactDetail
impl ContactDetail
pub fn set_name<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_telecom(self, v: Vec<ContactPoint>) -> Self
pub fn add_telecom(self, v: ContactPoint) -> Self
Trait Implementations§
source§impl Clone for ContactDetail
impl Clone for ContactDetail
source§fn clone(&self) -> ContactDetail
fn clone(&self) -> ContactDetail
Returns a copy 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 ContactDetail
impl Debug for ContactDetail
source§impl Default for ContactDetail
impl Default for ContactDetail
source§fn default() -> ContactDetail
fn default() -> ContactDetail
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ContactDetail
impl<'de> Deserialize<'de> for ContactDetail
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
source§impl Element for ContactDetail
impl Element for ContactDetail
fn has_id(&self) -> bool
fn id(&self) -> &Option<String>
fn set_id<T: Into<String>>(self, id: T) -> Self
fn has_extension(&self) -> bool
fn extension(&self) -> &Option<Vec<Extension>>
fn set_extension(self, ext: Vec<Extension>) -> Self
fn add_extension(self, ext: Extension) -> Self
source§impl Serialize for ContactDetail
impl Serialize for ContactDetail
Auto Trait Implementations§
impl RefUnwindSafe for ContactDetail
impl Send for ContactDetail
impl Sync for ContactDetail
impl Unpin for ContactDetail
impl UnwindSafe for ContactDetail
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