Module wikidata_rs::dtype
source · Expand description
pub mod dtype;
is creating a public module named dtype
. This module can be
accessed from other parts of the codebase and contains code related to data
types.
Structs
- An iterator over the variants of Self
Enums
- This code defines an enumeration called
DataType
with five possible variants:Quantity
,Coordinate
,String
,DateTime
, andEntity
. The#[derive(Clone, Debug, PartialEq)]
attribute macros are used to automatically generate implementations of theClone
,Debug
, andPartialEq
traits for theDataType
enum. This allows instances of the enum to be cloned, printed for debugging purposes, and compared for equality using the==
operator.