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

Enums

  • This code defines an enumeration called DataType with five possible variants: Quantity, Coordinate, String, DateTime, and Entity. The #[derive(Clone, Debug, PartialEq)] attribute macros are used to automatically generate implementations of the Clone, Debug, and PartialEq traits for the DataType enum. This allows instances of the enum to be cloned, printed for debugging purposes, and compared for equality using the == operator.