pub struct PointOfContact {
pub contact_name: String,
pub contact_type: Option<String>,
pub role: Option<String>,
pub phone: Option<String>,
pub email_address: String,
pub website: Option<String>,
pub organization: Option<String>,
pub address: Option<Address>,
pub other: HashMap<String, Value>,
}Expand description
The pointOfContact member of Metadata (§ 5.3).
contactName and emailAddress are the schema’s only two required
members; everything else is optional. As with Metadata, the schema’s
contactDetails definition declares no additionalProperties: false, so
other keeps anything further rather than dropping it.
Fields§
§contact_name: String§contact_type: Option<String>§role: Option<String>§phone: Option<String>§email_address: String§website: Option<String>§organization: Option<String>The name of the organisation, “to be used if the contactName is the
name of a person” (§ 5.3). Named by both the prose and the schema’s
contactDetails.properties; it had no field here at all, so it was
silently dropped.
address: Option<Address>§other: HashMap<String, Value>Every contact member the schema does not name, kept verbatim.
Trait Implementations§
Source§impl Clone for PointOfContact
impl Clone for PointOfContact
Source§fn clone(&self) -> PointOfContact
fn clone(&self) -> PointOfContact
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 PointOfContact
impl Debug for PointOfContact
Source§impl<'de> Deserialize<'de> for PointOfContact
impl<'de> Deserialize<'de> for PointOfContact
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 PointOfContact
impl PartialEq for PointOfContact
Source§impl Serialize for PointOfContact
impl Serialize for PointOfContact
impl StructuralPartialEq for PointOfContact
Auto Trait Implementations§
impl Freeze for PointOfContact
impl RefUnwindSafe for PointOfContact
impl Send for PointOfContact
impl Sync for PointOfContact
impl Unpin for PointOfContact
impl UnsafeUnpin for PointOfContact
impl UnwindSafe for PointOfContact
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