pub struct ContactPoint {
pub type_hint: Option<String>,
pub fn_: Option<String>,
pub has_email: Option<String>,
}Expand description
DCAT contact point (vcard:Contact).
Fields§
§type_hint: Option<String>§fn_: Option<String>Full name of the contact.
has_email: Option<String>Email URI (e.g. mailto:ops@example.gov).
Implementations§
Source§impl ContactPoint
impl ContactPoint
Sourcepub fn with_name(name: impl Into<String>) -> Self
pub fn with_name(name: impl Into<String>) -> Self
Create a ContactPoint with the DCAT fn field populated.
Trait Implementations§
Source§impl Clone for ContactPoint
impl Clone for ContactPoint
Source§fn clone(&self) -> ContactPoint
fn clone(&self) -> ContactPoint
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 ContactPoint
impl Debug for ContactPoint
Source§impl<'de> Deserialize<'de> for ContactPoint
impl<'de> Deserialize<'de> for ContactPoint
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
Auto Trait Implementations§
impl Freeze for ContactPoint
impl RefUnwindSafe for ContactPoint
impl Send for ContactPoint
impl Sync for ContactPoint
impl Unpin for ContactPoint
impl UnsafeUnpin for ContactPoint
impl UnwindSafe for ContactPoint
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