Struct gedcomx::GedcomxDate [−][src]
pub struct GedcomxDate(pub GedcomxDate);
Expand description
Newtype wrapping GedcomxDate
from the gedcomx_date
crate and adding the
ability to generate a formal string (via the Display
trait), failably
parse from a string (via the FromStr
trait), and serialize and
deseserialize into JSON and XML.
Trait Implementations
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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
fn serialize_attributes(
&self,
attributes: Vec<OwnedAttribute>,
namespace: Namespace
) -> Result<(Vec<OwnedAttribute>, Namespace), String>
Auto Trait Implementations
impl RefUnwindSafe for GedcomxDate
impl Send for GedcomxDate
impl Sync for GedcomxDate
impl Unpin for GedcomxDate
impl UnwindSafe for GedcomxDate
Blanket Implementations
Mutably borrows from an owned value. Read more