pub struct ContactRef {
pub name: ContactName,
}Expand description
Named staff or customer contact used for care-plan coordination.
Fields§
§name: ContactNameContact or display name used by staff.
Implementations§
Source§impl ContactRef
impl ContactRef
Sourcepub fn new(name: ContactName) -> Self
pub fn new(name: ContactName) -> Self
Assembles this care value from already-validated domain parts.
Trait Implementations§
Source§impl Clone for ContactRef
impl Clone for ContactRef
Source§fn clone(&self) -> ContactRef
fn clone(&self) -> ContactRef
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 ContactRef
impl Debug for ContactRef
Source§impl<'de> Deserialize<'de> for ContactRef
impl<'de> Deserialize<'de> for ContactRef
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 ContactRef
impl PartialEq for ContactRef
Source§impl Serialize for ContactRef
impl Serialize for ContactRef
impl Eq for ContactRef
impl StructuralPartialEq for ContactRef
Auto Trait Implementations§
impl Freeze for ContactRef
impl RefUnwindSafe for ContactRef
impl Send for ContactRef
impl Sync for ContactRef
impl Unpin for ContactRef
impl UnsafeUnpin for ContactRef
impl UnwindSafe for ContactRef
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